Skip to content

Bump phpstan/phpstan-phpunit from 1.4.0 to 2.0.1 #508

Bump phpstan/phpstan-phpunit from 1.4.0 to 2.0.1

Bump phpstan/phpstan-phpunit from 1.4.0 to 2.0.1 #508

Triggered via pull request December 1, 2024 11:41
Status Failure
Total duration 17m 44s
Artifacts

php.yml

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

Annotations

10 errors and 11 warnings
phpstan: src/PhpWord/Element/Field.php#L225
Call to function is_array() with array will always evaluate to true.
phpstan: src/PhpWord/Element/Field.php#L256
Call to function is_array() with array will always evaluate to true.
phpstan: src/PhpWord/Element/Field.php#L288
Instanceof between PhpOffice\PhpWord\Element\TextRun and PhpOffice\PhpWord\Element\TextRun will always evaluate to true.
phpstan: src/PhpWord/Element/Image.php#L515
Strict comparison using !== between string and false will always evaluate to true.
phpstan: src/PhpWord/Element/OLEObject.php#L1
Ignored error pattern #^Offset 'extension' does not exist on array\{dirname\?\: string, basename\: string, extension\?\: string, filename\: string\}\.$# in path /home/runner/work/PHPWord/PHPWord/src/PhpWord/Element/OLEObject.php was not matched in reported errors.
phpstan: src/PhpWord/Element/OLEObject.php#L74
Offset 'extension' might not exist on array{dirname?: string, basename: string, extension?: string, filename: string}.
phpstan: src/PhpWord/Element/OLEObject.php#L75
Offset 'extension' might not exist on array{dirname?: string, basename: string, extension?: string, filename: string}.
phpstan: src/PhpWord/Element/Section.php#L82
Call to function is_array() with array will always evaluate to true.
phpstan: src/PhpWord/Element/TOC.php#L69
Call to function is_array() with array will always evaluate to true.
phpstan: src/PhpWord/Metadata/Protection.php#L197
Strict comparison using !== between string and null will always evaluate to true.
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 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 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 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.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.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 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-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/
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/