Skip to content

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

Fix that style objects cannot be passed to element constructors

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

Triggered via pull request September 22, 2024 14:40
Status Failure
Total duration 17m 54s
Artifacts

php.yml

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

Annotations

6 errors and 22 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/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/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.
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.
phpstan
Process completed with exit code 1.
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/
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 8.1
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 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.0
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 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 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.2
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 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.3
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.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.3
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 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 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.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 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.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/
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/