Skip to content

Fix array + array inference #25546

Fix array + array inference

Fix array + array inference #25546

Triggered via pull request February 15, 2026 18:16
Status Failure
Total duration 12m 18s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
33s
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 2 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/Reflection/InitializerExprTypeResolver.php#L1528
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ // We only need to check the first array because we're looking for offsets that exist in ALL arrays. $constantArray = $rightConstantArrays[0]; foreach ($constantArray->getKeyTypes() as $offsetType) { - if (!$rightType->hasOffsetValueType($offsetType)->yes()) { + if ($rightType->hasOffsetValueType($offsetType)->no()) { continue; }
Mutation Testing (8.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1528
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ // We only need to check the first array because we're looking for offsets that exist in ALL arrays. $constantArray = $rightConstantArrays[0]; foreach ($constantArray->getKeyTypes() as $offsetType) { - if (!$rightType->hasOffsetValueType($offsetType)->yes()) { + if ($rightType->hasOffsetValueType($offsetType)->no()) { continue; }