Skip to content

Constants isDeprecation() depends on Scope->getPhpVersion() #24197

Constants isDeprecation() depends on Scope->getPhpVersion()

Constants isDeprecation() depends on Scope->getPhpVersion() #24197

Triggered via pull request December 12, 2025 15:29
@staabmstaabm
synchronize #4630
staabm:consts
Status Failure
Total duration 14m 54s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
39s
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.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/Reflection/BetterReflection/BetterReflectionProvider.php#L416
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $patch = $matches[3] ?? 0; $versionId = sprintf('%d%02d%02d', $major, $minor, $patch); if ($phpVersionType !== null) { - $isDeprecated = IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->yes(); + $isDeprecated = !IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->no(); } else { $isDeprecated = $this->phpVersion->getVersionId() >= $versionId; }
Mutation Testing (8.4, ubuntu-latest): src/Reflection/BetterReflection/BetterReflectionProvider.php#L416
Escaped Mutant for Mutator "PHPStan\Infection\IsSuperTypeOfCalleeAndArgumentMutator": @@ @@ $patch = $matches[3] ?? 0; $versionId = sprintf('%d%02d%02d', $major, $minor, $patch); if ($phpVersionType !== null) { - $isDeprecated = IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->yes(); + $isDeprecated = $phpVersionType->isSuperTypeOf(IntegerRangeType::fromInterval((int) $versionId, null))->yes(); } else { $isDeprecated = $this->phpVersion->getVersionId() >= $versionId; }
Mutation Testing (8.3, ubuntu-latest): src/Reflection/BetterReflection/BetterReflectionProvider.php#L416
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator": @@ @@ $patch = $matches[3] ?? 0; $versionId = sprintf('%d%02d%02d', $major, $minor, $patch); if ($phpVersionType !== null) { - $isDeprecated = IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->yes(); + $isDeprecated = !IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->no(); } else { $isDeprecated = $this->phpVersion->getVersionId() >= $versionId; }
Mutation Testing (8.3, ubuntu-latest): src/Reflection/BetterReflection/BetterReflectionProvider.php#L416
Escaped Mutant for Mutator "PHPStan\Infection\IsSuperTypeOfCalleeAndArgumentMutator": @@ @@ $patch = $matches[3] ?? 0; $versionId = sprintf('%d%02d%02d', $major, $minor, $patch); if ($phpVersionType !== null) { - $isDeprecated = IntegerRangeType::fromInterval((int) $versionId, null)->isSuperTypeOf($phpVersionType)->yes(); + $isDeprecated = $phpVersionType->isSuperTypeOf(IntegerRangeType::fromInterval((int) $versionId, null))->yes(); } else { $isDeprecated = $this->phpVersion->getVersionId() >= $versionId; }