Skip to content

Fix phpstan/phpstan#11488: Wrongly assumed undefined variable since 1.11.10 #26491

Fix phpstan/phpstan#11488: Wrongly assumed undefined variable since 1.11.10

Fix phpstan/phpstan#11488: Wrongly assumed undefined variable since 1.11.10 #26491

Triggered via pull request March 8, 2026 12:24
Status Failure
Total duration 16m 33s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
47s
Determine levels tests matrix
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 4 warnings
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1379
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ $resultTypes[] = TypeCombinator::intersect($arrayType, new NonEmptyArrayType()); } - if ($context->falsey()) { + if ($context->false()) { if (count($resultTypes) === 0) { return null; }
Mutation Testing (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1278
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ foreach ($type->getArrays() as $arrayType) { $isSizeSuperTypeOfArraySize = $sizeType->isSuperTypeOf($arrayType->getArraySize()); - if ($context->falsey()) { + if ($context->false()) { if ($isSizeSuperTypeOfArraySize->yes()) { continue; }
Mutation Testing (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1379
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ $resultTypes[] = TypeCombinator::intersect($arrayType, new NonEmptyArrayType()); } - if ($context->falsey()) { + if ($context->false()) { if (count($resultTypes) === 0) { return null; }
Mutation Testing (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1278
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ foreach ($type->getArrays() as $arrayType) { $isSizeSuperTypeOfArraySize = $sizeType->isSuperTypeOf($arrayType->getArraySize()); - if ($context->falsey()) { + if ($context->false()) { if ($isSizeSuperTypeOfArraySize->yes()) { continue; }