Fix that style objects cannot be passed to element constructors #476
Annotations
10 errors and 2 warnings
Static analysis with PHPStan:
src/PhpWord/Element/AbstractElement.php#L1
Ignored error pattern #^Parameter \#1 \$string of function md5 expects string, int\<0, max\> given\.$# in path /home/runner/work/PHPWord/PHPWord/src/PhpWord/Element/AbstractElement.php was not matched in reported errors.
|
Static analysis with PHPStan:
src/PhpWord/Element/Cell.php#L1
Ignored error pattern #^Parameter \#2 \$styleValue of method PhpOffice\\PhpWord\\Element\\AbstractElement\:\:setNewStyle\(\) expects array\|PhpOffice\\PhpWord\\Style\|string\|null, array\|PhpOffice\\PhpWord\\Style\\Cell\|null given\.$# in path /home/runner/work/PHPWord/PHPWord/src/PhpWord/Element/Cell.php was not matched in reported errors.
|
Static analysis with PHPStan:
src/PhpWord/Element/Cell.php#L55
Property PhpOffice\PhpWord\Element\Cell::$style (PhpOffice\PhpWord\Style\Cell|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Chart.php#L70
Property PhpOffice\PhpWord\Element\Chart::$style (PhpOffice\PhpWord\Style\Chart|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Footnote.php#L1
Ignored error pattern #^Parameter \#2 \$styleValue of method PhpOffice\\PhpWord\\Element\\AbstractElement\:\:setNewStyle\(\) expects array\|PhpOffice\\PhpWord\\Style\|string\|null, array\|PhpOffice\\PhpWord\\Style\\Paragraph\|string\|null given\.$# in path /home/runner/work/PHPWord/PHPWord/src/PhpWord/Element/Footnote.php was not matched in reported errors.
|
Static analysis with PHPStan:
src/PhpWord/Element/Footnote.php#L50
Property PhpOffice\PhpWord\Element\Footnote::$paragraphStyle (PhpOffice\PhpWord\Style\Paragraph|string|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Image.php#L152
Property PhpOffice\PhpWord\Element\Image::$style (PhpOffice\PhpWord\Style\Image|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Line.php#L41
Property PhpOffice\PhpWord\Element\Line::$style (PhpOffice\PhpWord\Style\Line|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Link.php#L84
Property PhpOffice\PhpWord\Element\Link::$fontStyle (PhpOffice\PhpWord\Style\Font|string|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
Static analysis with PHPStan:
src/PhpWord/Element/Link.php#L85
Property PhpOffice\PhpWord\Element\Link::$paragraphStyle (PhpOffice\PhpWord\Style\Paragraph|string|null) does not accept array|PhpOffice\PhpWord\Style\AbstractStyle|string|null.
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Get composer cache directory
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading