Fix phpstan/phpstan#11488: Wrongly assumed undefined variable since 1.11.10 #26491
tests.yml
on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
47s
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
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/TypeSpecifier.php#L1379
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator":
@@ @@
$resultTypes[] = TypeCombinator::intersect($arrayType, new NonEmptyArrayType());
}
- if ($context->falsey()) {
+ if ($context->false()) {
if (count($resultTypes) === 0) {
return null;
}
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L1278
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator":
@@ @@
foreach ($type->getArrays() as $arrayType) {
$isSizeSuperTypeOfArraySize = $sizeType->isSuperTypeOf($arrayType->getArraySize());
- if ($context->falsey()) {
+ if ($context->false()) {
if ($isSizeSuperTypeOfArraySize->yes()) {
continue;
}
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L1379
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator":
@@ @@
$resultTypes[] = TypeCombinator::intersect($arrayType, new NonEmptyArrayType());
}
- if ($context->falsey()) {
+ if ($context->false()) {
if (count($resultTypes) === 0) {
return null;
}
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L1278
Escaped Mutant for Mutator "PHPStan\Infection\TrueTruthyFalseFalseyTypeSpecifierContextMutator":
@@ @@
foreach ($type->getArrays() as $arrayType) {
$isSizeSuperTypeOfArraySize = $sizeType->isSuperTypeOf($arrayType->getArraySize());
- if ($context->falsey()) {
+ if ($context->false()) {
if ($isSizeSuperTypeOfArraySize->yes()) {
continue;
}
|