Fix #14081: infer offset after array_key_first #25786
Triggered via pull request
February 19, 2026 08:21
Status
Failure
Total duration
13m 18s
Artifacts
–
tests.yml
on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
39s
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
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/Analyser/NodeScopeResolver.php#L6123
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if (
$arrayArg instanceof Variable
&& is_string($arrayArg->name)
- && $arrayType->isArray()->yes()
+ && !$arrayType->isArray()->no()
&& !$arrayType->isIterableAtLeastOnce()->yes()
&& !$nonNullType instanceof NeverType
&& !$type->equals($nonNullType)
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Analyser/NodeScopeResolver.php#L6123
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
if (
$arrayArg instanceof Variable
&& is_string($arrayArg->name)
- && $arrayType->isArray()->yes()
+ && !$arrayType->isArray()->no()
&& !$arrayType->isIterableAtLeastOnce()->yes()
&& !$nonNullType instanceof NeverType
&& !$type->equals($nonNullType)
|