Skip to content

Replace SpecifiedTypes::normalize() with symbolic alternative-form entries #31463

Replace SpecifiedTypes::normalize() with symbolic alternative-form entries

Replace SpecifiedTypes::normalize() with symbolic alternative-form entries #31463

Triggered via pull request July 28, 2026 15:56
Status Failure
Total duration 18m 39s
Artifacts 2

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
43s
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 3 warnings
Mutation Testing (8.4, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.3, ubuntu-latest)
Process completed with exit code 1.
Mutation Testing (8.4, ubuntu-latest): src/Type/Php/InArrayFunctionTypeSpecifyingExtension.php#L94
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ } $combinedMultipleItems = true; - $types = $context->true() ? $types->intersectWith($itemTypes) : $types->unionWith($itemTypes); + $types = $context->truthy() ? $types->intersectWith($itemTypes) : $types->unionWith($itemTypes); } if ($types !== null) {
Mutation Testing (8.4, ubuntu-latest): src/Analyser/ExprHandler/NullsafeMethodCallHandler.php#L84
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ )->setRootExpr($expr); $nullSafeTypes = $typeSpecifier->handleDefaultTruthyOrFalseyContext($context, $expr, $scope); - return $context->true() ? $types->unionWith($nullSafeTypes) : $types->intersectWith($nullSafeTypes); + return $context->truthy() ? $types->unionWith($nullSafeTypes) : $types->intersectWith($nullSafeTypes); } public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Expr $expr, MutatingScope $scope, ExpressionResultStorage $storage, callable $nodeCallback, ExpressionContext $context): ExpressionResult
Mutation Testing (8.3, ubuntu-latest): src/Analyser/ExprHandler/NullsafePropertyFetchHandler.php#L84
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator": @@ @@ )->setRootExpr($expr); $nullSafeTypes = $typeSpecifier->handleDefaultTruthyOrFalseyContext($context, $expr, $scope); - return $context->true() ? $types->unionWith($nullSafeTypes) : $types->intersectWith($nullSafeTypes); + return $context->truthy() ? $types->unionWith($nullSafeTypes) : $types->intersectWith($nullSafeTypes); } public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Expr $expr, MutatingScope $scope, ExpressionResultStorage $storage, callable $nodeCallback, ExpressionContext $context): ExpressionResult

Artifacts

Produced during runtime
Name Size Digest
coverage-reports
208 MB
sha256:da00ed3e80b8fb8bb1d25b089e23b36b5d373ecdb2ccdd8533f923b36c7ef002
coverage-reports
204 MB
sha256:70cd2c8b5a01e4cc669461839bc948ab5befdc5336f6aa6cc6c4682d0913cedd