Skip to content

Fix missing detection of dead code in closures #20957

Fix missing detection of dead code in closures

Fix missing detection of dead code in closures #20957

Triggered via pull request August 1, 2025 11:24
Status Failure
Total duration 6m 25s
Artifacts 12

phar.yml

on: pull_request
Download base SHA PHAR
0s
Download base SHA PHAR
integration-tests  /  Check PHAR checksum
6s
integration-tests / Check PHAR checksum
extension-tests  /  Check PHAR checksum
4s
extension-tests / Check PHAR checksum
other-tests  /  Check PHAR checksum
5s
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

72 errors
integration-tests / Integration - shipmonk/phpstan-rules tests
Process completed with exit code 1.
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.
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.
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.
extension-tests / Extension Tests (8.5, phpdoc-parser)
Process completed with exit code 2.
extension-tests / Extension Tests (8.5, phpdoc-parser): src/Ast/PhpDoc/PhpDocNode.php#L398
Unreachable statement - code above always terminates.
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.
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.
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.
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.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.
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.
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.
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: 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.
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 - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - rectorphp/rector-src
Process completed with exit code 1.
integration-tests / Integration - Rector tests
Process completed with exit code 2.
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.
integration-tests / Integration - sebastianbergmann/phpunit
Process completed with exit code 1.
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 (7.4, phpstan-strict-rules)
Process completed with exit code 2.
extension-tests / Extension Tests (8.1, 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.5, 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.1, phpstan-doctrine)
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 (7.4, phpstan-doctrine)
Process completed with exit code 2.

Artifacts

Produced during runtime
Name Size Digest
baselines-
8.86 MB
sha256:de302cbd0d603d5ffd4bf9536f6bdf4deda8ff38c3d2fedbcb6341602ee1b0f6
baselines-bladestan-baseline.neon
486 Bytes
sha256:9316de07832cc3aebd2f599d8b47a38447b231a1f15a9d7dacb768d355c1241b
baselines-doctrine-collections-baseline.neon
414 Bytes
sha256:18497a200cb831188bfc6d033a8e46472fc09bdc9ca804f0bf83451c42621a44
baselines-doctrine-dbal-baseline.neon
688 Bytes
sha256:7e2ae1ca6b4c402bf9c7df0184b4f5a65c3693187d3808c876de77febb91497d
baselines-doctrine-orm-baseline.neon
1.61 KB
sha256:342a40d6d402a1e184517c5962d9439c9eaf9413b609331a8d2ea4f18e50d76a
baselines-larastan-baseline.neon
886 Bytes
sha256:5e982c6192b08c09ba6abb776900851a652d50aacd1eb5ab7f43137e991cc863
baselines-laravel-types-baseline.neon
317 Bytes
sha256:52e08582d0e71639c42eb3d60bc0a5a351a291b0b02da761a49727b5efa99345
baselines-phpunit-baseline.neon
628 Bytes
sha256:3a8f7b4c5cae3e1f550116c6c3978cdfa930026f67c094ed4180b7b2091782bb
baselines-rector-baseline.neon
506 Bytes
sha256:adf6d177f8bbd63333abaafd0b502f9d30fbd019671eb8e67ee24fb8a32ab589
baselines-shipmonk-dead-code-detector-baseline.neon
487 Bytes
sha256:547bd3cde0006f69503af3b066bf9c3185dd700dc724402184c7c59131c6de70
phar-file
3.64 MB
sha256:7c42b9e04d055989729f26868541eebce5bea27a2ecc17c4e7a8421d4fcb2f01
phar-file-checksum
3.64 MB
sha256:ad52aa1dd2247fe654317e21330ee393406a47171e85199d88b43a9c6990a7c1