Skip to content

Fix #9908: isset condition doesn't refine type #25648

Fix #9908: isset condition doesn't refine type

Fix #9908: isset condition doesn't refine type #25648

Triggered via pull request February 16, 2026 21:03
Status Failure
Total duration 14m 4s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
36s
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#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $typesToRemove = []; foreach ($types as $innerType) { $hasOffset = $innerType->hasOffsetValueType($dimType); - if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { + if (!$hasOffset->yes() || $innerType->getOffsetValueType($dimType)->isNull()->yes()) { continue; }
Mutation Testing (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $typesToRemove = []; foreach ($types as $innerType) { $hasOffset = $innerType->hasOffsetValueType($dimType); - if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { + if ($hasOffset->no() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { continue; }
Mutation Testing (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $typesToRemove = []; foreach ($types as $innerType) { $hasOffset = $innerType->hasOffsetValueType($dimType); - if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { + if (!$hasOffset->yes() || $innerType->getOffsetValueType($dimType)->isNull()->yes()) { continue; }
Mutation Testing (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $typesToRemove = []; foreach ($types as $innerType) { $hasOffset = $innerType->hasOffsetValueType($dimType); - if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { + if ($hasOffset->no() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) { continue; }