Skip to content

Raise PHPStan to level 7 #69

Raise PHPStan to level 7

Raise PHPStan to level 7 #69

Triggered via pull request July 7, 2026 15:00
Status Failure
Total duration 37s
Artifacts

php.yml

on: pull_request
PHP CS Fixer
15s
PHP CS Fixer
PHP Mess Detector
13s
PHP Mess Detector
Matrix: PHP Static Analysis
Matrix: PHPUnit
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 22 warnings
PHP Static Analysis (7.1): tests/Common/Tests/_includes/XmlDocument.php#L98
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.1): tests/Common/Tests/FileTest.php#L44
Parameter #1 $filename of function unlink expects string, string|false given.
PHP Static Analysis (7.1): tests/Common/Tests/FileTest.php#L42
Parameter #1 $filename of function chmod expects string, string|false given.
PHP Static Analysis (7.1): tests/Common/Tests/FileTest.php#L41
Parameter #2 $destination_file of function copy expects string, string|false given.
PHP Static Analysis (7.1): tests/Common/Tests/Adapter/Zip/AbstractZipAdapter.php#L28
Parameter #2 $destination_file of function copy expects string, string|false given.
PHP Static Analysis (7.1): tests/Common/Tests/Adapter/Zip/AbstractZipAdapter.php#L27
Property PhpOffice\Common\Tests\Adapter\Zip\AbstractZipAdapter::$zipTest (string) does not accept string|false.
PHP Static Analysis (7.1): src/Common/XMLWriter.php#L70
Parameter #1 $uri of method XMLWriter::openUri() expects string, string|false given.
PHP Static Analysis (7.1): src/Common/XMLWriter.php#L67
Property PhpOffice\Common\XMLWriter::$tempFileName (string) does not accept string|false.
PHP Static Analysis (7.1): src/Common/XMLReader.php#L112
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.1): src/Common/Adapter/Zip/PclZipAdapter.php#L45
Offset 'dirname' on array{dirname: string, basename: string, filename: string, extension?: string} on left side of ?? always exists and is not nullable.
PHP Static Analysis (8.5)
Process completed with exit code 1.
PHP Static Analysis (8.5): src/Common/Text.php#L229
Parameter #1 $codepoint of function chr expects int<0, 255>, int<min, 127> given.
PHP Static Analysis (8.5): src/Common/Text.php#L96
Parameter #1 $codepoint of function chr expects int<0, 255>, int<min, 127> given.
PHP Static Analysis (7.3)
Process completed with exit code 1.
PHP Static Analysis (7.3): tests/Common/Tests/_includes/XmlDocument.php#L98
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.3): tests/Common/Tests/AutoloaderTest.php#L36
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertContains() expects iterable, array<int, callable>|false given.
PHP Static Analysis (7.3): src/Common/XMLReader.php#L112
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.3): src/Common/Text.php#L251
Method PhpOffice\Common\Text::removeUnderscorePrefix() should return string but returns string|false|null.
PHP Static Analysis (7.3): src/Common/Microsoft/PasswordEncoder.php#L134
Parameter #1 $string of function substr expects string, string|false given.
PHP Static Analysis (7.3): src/Common/Microsoft/PasswordEncoder.php#L131
Parameter #1 $string of function substr expects string, string|false given.
PHP Static Analysis (7.2)
Process completed with exit code 1.
PHP Static Analysis (7.2): tests/Common/Tests/_includes/XmlDocument.php#L98
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.2): src/Common/XMLReader.php#L112
Type DOMNameSpaceNode|DOMNode in generic type DOMNodeList<DOMNameSpaceNode|DOMNode> in PHPDoc tag @return is not subtype of template type TNode of DOMNode of class DOMNodeList.
PHP Static Analysis (7.2): src/Common/Text.php#L251
Method PhpOffice\Common\Text::removeUnderscorePrefix() should return string but returns string|false|null.
PHP Static Analysis (7.2): src/Common/Microsoft/PasswordEncoder.php#L134
Parameter #1 $string of function substr expects string, string|false given.
PHP Static Analysis (7.2): src/Common/Microsoft/PasswordEncoder.php#L131
Parameter #1 $string of function substr expects string, string|false given.
PHP Static Analysis (7.4)
Process completed with exit code 1.
PHP Static Analysis (7.4): tests/Common/Tests/AutoloaderTest.php#L36
Parameter #2 $haystack of method PHPUnit\Framework\Assert::assertContains() expects iterable, list<callable>|false given.
PHP Static Analysis (7.4): src/Common/Text.php#L251
Method PhpOffice\Common\Text::removeUnderscorePrefix() should return string but returns string|false|null.
PHP Static Analysis (7.4): src/Common/Microsoft/PasswordEncoder.php#L134
Parameter #1 $string of function substr expects string, string|false given.
PHP Static Analysis (7.4): src/Common/Microsoft/PasswordEncoder.php#L131
Parameter #1 $string of function substr expects string, string|false given.
PHPUnit (8.3)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Mess Detector
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (8.0)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (7.1)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (8.2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (7.1)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP CS Fixer
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (7.4)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.0)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.5)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (8.5)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.3)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.1)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (8.1)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (7.3)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (7.3)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (8.4)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (7.2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (7.2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHP Static Analysis (7.4)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
PHPUnit (8.4)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v2. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/