Skip to content

Fix that style objects cannot be passed to element constructors #476

Fix that style objects cannot be passed to element constructors

Fix that style objects cannot be passed to element constructors #476

Triggered via pull request September 22, 2024 14:23
Status Failure
Total duration 18m 25s
Artifacts

php.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

34 errors and 15 warnings
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
php-cs-fixer
Process completed with exit code 8.
PHP 7.4: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 7.4
Process completed with exit code 1.
PHP 8.0
The job was canceled because "_7_4" failed.
PHP 8.0: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 8.0
The operation was canceled.
PHP 8.2
The job was canceled because "_7_4" failed.
PHP 8.2: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 8.2
The operation was canceled.
PHP 7.1.3
The job was canceled because "_7_4" failed.
PHP 7.1.3: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 7.1.3
The operation was canceled.
PHP 8.1
The job was canceled because "_7_4" failed.
PHP 8.1: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 8.1
The operation was canceled.
PHP 8.3
The job was canceled because "_7_4" failed.
PHP 8.3: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 8.3
The operation was canceled.
PHP 7.2
The job was canceled because "_7_4" failed.
PHP 7.2: tests/PhpWordTests/Element/SectionTest.php#L54
Failed asserting that two variables reference the same object.
PHP 7.2
The operation was canceled.
PHP 7.3
The job was canceled because "_7_4" failed.
PHP 7.3
The operation was canceled.
coverage
Process completed with exit code 1.
phpstan
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/
phpstan
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/
php-cs-fixer
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/
php-cs-fixer
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/
PHP 7.4
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3, mheap/phpunit-matcher-action@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
PHP 7.4
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/
PHP 8.0
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/
PHP 8.2
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/
PHP 7.1.3
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/
PHP 8.1
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/
PHP 8.3
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/
PHP 7.2
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/
PHP 7.3
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/
coverage
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/
coverage
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/