Skip to content

Invalidate static expressions when a non-static expression is called #25992

Invalidate static expressions when a non-static expression is called

Invalidate static expressions when a non-static expression is called #25992

Triggered via pull request February 23, 2026 16:29
Status Failure
Total duration 14m 25s
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 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/NodeScopeResolver.php#L3220
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ($methodReflection !== null) { $shouldInvalidateExpr = $this->rememberPossiblyImpureFunctionValues ? $methodReflection->hasSideEffects()->yes() - : !$methodReflection->hasSideEffects()->no(); + : $methodReflection->hasSideEffects()->yes(); if ($shouldInvalidateExpr || $methodReflection->getName() === '__construct') { $this->callNodeCallback($nodeCallback, new InvalidateExprNode($normalizedExpr->var), $scope, $storage); $scope = $scope->invalidateExpression($normalizedExpr->var, true, $methodReflection->getDeclaringClass());
Mutation Testing (8.3, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L3219
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ($methodReflection !== null) { $shouldInvalidateExpr = $this->rememberPossiblyImpureFunctionValues - ? $methodReflection->hasSideEffects()->yes() + ? !$methodReflection->hasSideEffects()->no() : !$methodReflection->hasSideEffects()->no(); if ($shouldInvalidateExpr || $methodReflection->getName() === '__construct') { $this->callNodeCallback($nodeCallback, new InvalidateExprNode($normalizedExpr->var), $scope, $storage);
Mutation Testing (8.4, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L3220
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ($methodReflection !== null) { $shouldInvalidateExpr = $this->rememberPossiblyImpureFunctionValues ? $methodReflection->hasSideEffects()->yes() - : !$methodReflection->hasSideEffects()->no(); + : $methodReflection->hasSideEffects()->yes(); if ($shouldInvalidateExpr || $methodReflection->getName() === '__construct') { $this->callNodeCallback($nodeCallback, new InvalidateExprNode($normalizedExpr->var), $scope, $storage); $scope = $scope->invalidateExpression($normalizedExpr->var, true, $methodReflection->getDeclaringClass());
Mutation Testing (8.4, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L3219
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ if ($methodReflection !== null) { $shouldInvalidateExpr = $this->rememberPossiblyImpureFunctionValues - ? $methodReflection->hasSideEffects()->yes() + ? !$methodReflection->hasSideEffects()->no() : !$methodReflection->hasSideEffects()->no(); if ($shouldInvalidateExpr || $methodReflection->getName() === '__construct') { $this->callNodeCallback($nodeCallback, new InvalidateExprNode($normalizedExpr->var), $scope, $storage);