Fix that style objects cannot be passed to element constructors #477
Annotations
6 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/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/Section.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\|PhpOffice\\PhpWord\\Style\\Section\|string given\.$# in path /home/runner/work/PHPWord/PHPWord/src/PhpWord/Element/Section.php was not matched in reported errors.
|
Static analysis with PHPStan:
src/PhpWord/Element/Section.php#L72
Parameter #2 $styleValue of method PhpOffice\PhpWord\Element\AbstractElement::setNewStyle() expects array|PhpOffice\PhpWord\Style\AbstractStyle|string|null, array|PhpOffice\PhpWord\Style|PhpOffice\PhpWord\Style\Section|string given.
|
Static analysis with PHPStan
Process completed with exit code 1.
|
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