Skip to content

Fix missing detection of dead code in closures #20742

Fix missing detection of dead code in closures

Fix missing detection of dead code in closures #20742

Triggered via pull request July 22, 2025 15:00
Status Failure
Total duration 7m 18s
Artifacts 12

phar.yml

on: pull_request
Compiler Tests
5m 4s
Compiler Tests
Download base SHA PHAR
0s
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
7s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
5s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
8s
other-tests / Check PHAR checksum
Commit PHAR
0s
Commit PHAR
Checksum PHAR
0s
Checksum PHAR
PHAR Prefix Diff
0s
PHAR Prefix Diff
Matrix: integration-tests / integration-run-phpstan
Matrix: integration-tests / integration-tests
Matrix: extension-tests / Extension Tests
Matrix: other-tests / Other Tests
integration-tests  /  Integration - Update baselines
0s
integration-tests / Integration - Update baselines
Fit to window
Zoom out
Zoom in

Annotations

79 errors
extension-tests / Extension Tests (8.3, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.3, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
extension-tests / Extension Tests (8.2, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.2, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
extension-tests / Extension Tests (7.4, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
extension-tests / Extension Tests (8.0, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.0, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
extension-tests / Extension Tests (8.1, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
integration-tests / Integration - shipmonk/phpstan-rules tests
Process completed with exit code 1.
integration-tests / Integration - bladestan/bladestan
Process completed with exit code 1.
integration-tests / Integration - bladestan/bladestan: src/TemplateCompiler/PHPStan/FileAnalyserProvider.php#L37
Method Bladestan\TemplateCompiler\PHPStan\FileAnalyserProvider::provide() throws checked exception PHPStan\DependencyInjection\MissingServiceException but it's missing from the PHPDoc @throws tag.
integration-tests / Integration - bladestan/bladestan: src/NodeAnalyzer/ViewVariableAnalyzer.php#L50
Unreachable statement - code above always terminates.
integration-tests / Integration - bladestan/bladestan: src/Compiler/BladeToPHPCompiler.php#L394
Unreachable statement - code above always terminates.
integration-tests / Integration - shipmonk-rnd/dead-code-detector
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Provider/SymfonyUsageProvider.php#L591
Unreachable statement - code above always terminates.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Excluder/TestsUsageExcluder.php#L173
Unused ShipMonk\PHPStan\DeadCode\Excluder\TestsUsageExcluder::extractAutoloadPaths
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Excluder/TestsUsageExcluder.php#L173
Method ShipMonk\PHPStan\DeadCode\Excluder\TestsUsageExcluder::extractAutoloadPaths() is unused.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Excluder/TestsUsageExcluder.php#L146
Unused ShipMonk\PHPStan\DeadCode\Excluder\TestsUsageExcluder::parseComposerJson
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Excluder/TestsUsageExcluder.php#L146
Method ShipMonk\PHPStan\DeadCode\Excluder\TestsUsageExcluder::parseComposerJson() is unused.
integration-tests / Integration - shipmonk-rnd/dead-code-detector: src/Excluder/TestsUsageExcluder.php#L118
Unreachable statement - code above always terminates.
other-tests / Other Tests (ubuntu-latest, 8.0, cd e2e git clone https://github.com/nikic/PHP-Parser.git cd PHP-...: lib/PhpParser/Lexer.php#L0
Ignored error pattern #^Undefined variable\: \$undefinedVariable$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/PHP-Parser/lib/PhpParser/Lexer.php was not matched in reported errors.
extension-tests / Extension Tests (8.4, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
other-tests / Other Tests (ubuntu-latest, 7.4, cd e2e git clone https://github.com/nikic/PHP-Parser.git cd PHP-...: lib/PhpParser/Lexer.php#L0
Ignored error pattern #^Undefined variable\: \$undefinedVariable$# in path /home/runner/work/phpstan-src/phpstan-src/e2e/PHP-Parser/lib/PhpParser/Lexer.php was not matched in reported errors.
integration-tests / Integration - shipmonk-rnd/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/phpstan-rules
Process completed with exit code 1.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceReadonlyPublicPropertyRuleTest.php#L37
No error with identifier phpstanApi.constructor is reported on line 37.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceNativeReturnTypehintRuleTest.php#L66
No error with identifier phpstanApi.constructor is reported on line 66.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: tests/Rule/EnforceClosureParamNativeTypehintRuleTest.php#L61
No error with identifier phpstanApi.constructor is reported on line 61.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: src/Rule/ForbidCheckedExceptionInCallableRule.php#L78
Class ShipMonk\PHPStan\Rule\ForbidCheckedExceptionInCallableRule has an uninitialized property $callablesAllowingCheckedExceptions. Give it default value or assign it in the constructor.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: src/Rule/ForbidCheckedExceptionInCallableRule.php#L59
Class ShipMonk\PHPStan\Rule\ForbidCheckedExceptionInCallableRule has an uninitialized property $exceptionTypeResolver. Give it default value or assign it in the constructor.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: src/Rule/ForbidCheckedExceptionInCallableRule.php#L57
Class ShipMonk\PHPStan\Rule\ForbidCheckedExceptionInCallableRule has an uninitialized property $reflectionProvider. Give it default value or assign it in the constructor.
integration-tests / Integration - shipmonk-rnd/phpstan-rules: src/Rule/ForbidCheckedExceptionInCallableRule.php#L55
Class ShipMonk\PHPStan\Rule\ForbidCheckedExceptionInCallableRule has an uninitialized property $nodeScopeResolver. Give it default value or assign it in the constructor.
integration-tests / Integration - larastan/larastan
Process completed with exit code 1.
integration-tests / Integration - larastan/larastan: src/Properties/MigrationHelper.php#L60
Unreachable statement - code above always terminates.
integration-tests / Integration - larastan/larastan: src/Properties/MigrationHelper.php#L25
Property Larastan\Larastan\Properties\MigrationHelper::$parser is never read, only written.
integration-tests / Integration - larastan/larastan: src/Collectors/UsedViewInAnotherViewCollector.php#L57
Unreachable statement - code above always terminates.
integration-tests / Integration - larastan/larastan: src/Collectors/UsedViewInAnotherViewCollector.php#L23
Constant Larastan\Larastan\Collectors\UsedViewInAnotherViewCollector::VIEW_NAME_REGEX is unused.
integration-tests / Integration - Rector tests
Process completed with exit code 2.
integration-tests / Integration - doctrine/collections
Process completed with exit code 1.
integration-tests / Integration - doctrine/collections: src/Criteria.php#L226
Unreachable statement - code above always terminates.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - sebastianbergmann/phpunit
Process completed with exit code 1.
integration-tests / Integration - laravel/framework
Process completed with exit code 1.
integration-tests / Integration - laravel/framework: types/Support/Helpers.php#L66
Unreachable statement - code above always terminates.
integration-tests / Integration - laravel/framework: types/Support/Helpers.php#L47
Unreachable statement - code above always terminates.
integration-tests / Integration - laravel/framework: types/Support/Helpers.php#L34
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/dbal
Process completed with exit code 1.
integration-tests / Integration - doctrine/dbal: tests/Functional/TransactionTest.php#L61
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/dbal: tests/Functional/ExceptionTest.php#L101
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/dbal: src/Schema/SQLiteSchemaManager.php#L126
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/dbal: src/Schema/AbstractAsset.php#L155
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/dbal: src/Driver/PgSQL/Driver.php#L65
Method Doctrine\DBAL\Driver\PgSQL\Driver::constructConnectionString() is unused.
integration-tests / Integration - doctrine/dbal: src/Driver/PgSQL/Driver.php#L39
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/orm
Process completed with exit code 1.
integration-tests / Integration - doctrine/orm: src/ORMInvalidArgumentException.php#L67
Unreachable statement - code above always terminates.
integration-tests / Integration - doctrine/orm: src/Internal/Hydration/AbstractHydrator.php#L358
Method Doctrine\ORM\Internal\Hydration\AbstractHydrator::gatherRowData() should return array{data: array<array>, newObjects?: array<array{class: ReflectionClass, args: array, obj: object}>, scalars?: array} but returns array{data: array<non-empty-array>, newObjects: array<array{class: mixed, args: non-empty-array, obj?: mixed}>, scalars?: non-empty-array}.
integration-tests / Integration - doctrine/orm: src/AbstractQuery.php#L1112
Unreachable statement - code above always terminates.
extension-tests / Extension Tests (8.1, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.0, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.3, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.2, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.4, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.2, phpstan-doctrine)
Process completed with exit code 2.
extension-tests / Extension Tests (8.0, phpstan-doctrine)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, phpstan-doctrine)
Process completed with exit code 2.
extension-tests / Extension Tests (7.4, phpstan-doctrine)
Process completed with exit code 2.

Artifacts

Produced during runtime
Name Size Digest
baselines-
8.86 MB
sha256:990ea11008e3dadd19f8b7c76d735cbb44617becfac6d726e1701da489881c1e
baselines-bladestan-baseline.neon
486 Bytes
sha256:821500c97c07d7254b4e6d32624d5f0e80085770de7a29ad6bea333e255f29f6
baselines-doctrine-collections-baseline.neon
414 Bytes
sha256:4085ecb8fcf41a35f552426cf2c97adc4cefb548d0c9ec7917af593182f307bf
baselines-doctrine-dbal-baseline.neon
773 Bytes
sha256:540b50d389036ea87e133f2bf21b89133feb563dcc64d5cc73df9c60e5761685
baselines-doctrine-orm-baseline.neon
1.61 KB
sha256:30a9363c3ff88967468d5e2e2d787c33c1e63e01d902ae8afeb3a311afe826ee
baselines-larastan-baseline.neon
886 Bytes
sha256:82352878e3298b37de7ed8438810e74e9a5632c71ac20270c0295989b0ea0ab3
baselines-laravel-types-baseline.neon
317 Bytes
sha256:faf29e7be1331ae7d618021d387bafb77a9855e56e9df932234997581c9e99b4
baselines-phpunit-baseline.neon
653 Bytes
sha256:a5ca3330138648d3b6f8bee1271978b78b0e7ef9be66c5ee5bf86e2ccbbc1ad8
baselines-rector-baseline.neon
506 Bytes
sha256:5cc6f0dc5a0b5ee2c58bf773879fa2bcca2e0ea15e2ce96a7d0a7a699113d164
baselines-shipmonk-dead-code-detector-baseline.neon
487 Bytes
sha256:4d490d89000c134e72abbe591f3366edcd72b4951794512e5db0d53bf5740237
phar-file
3.64 MB
sha256:c96b1dce6f3ba964bfec33f5a243f1e22063e06058ec30ac7522d04ea23368d3
phar-file-checksum
3.64 MB
sha256:b37c186f76ed731bb8cf3b6d5281c5c7b0a6248ee982f6f65d739f6cff292052