Fix #9908: isset condition doesn't refine type #25648
tests.yml
on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
36s
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#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
$typesToRemove = [];
foreach ($types as $innerType) {
$hasOffset = $innerType->hasOffsetValueType($dimType);
- if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
+ if (!$hasOffset->yes() || $innerType->getOffsetValueType($dimType)->isNull()->yes()) {
continue;
}
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
$typesToRemove = [];
foreach ($types as $innerType) {
$hasOffset = $innerType->hasOffsetValueType($dimType);
- if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
+ if ($hasOffset->no() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
continue;
}
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
$typesToRemove = [];
foreach ($types as $innerType) {
$hasOffset = $innerType->hasOffsetValueType($dimType);
- if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
+ if (!$hasOffset->yes() || $innerType->getOffsetValueType($dimType)->isNull()->yes()) {
continue;
}
|
|
Mutation Testing (8.4, ubuntu-latest):
src/Analyser/TypeSpecifier.php#L936
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
$typesToRemove = [];
foreach ($types as $innerType) {
$hasOffset = $innerType->hasOffsetValueType($dimType);
- if (!$hasOffset->yes() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
+ if ($hasOffset->no() || !$innerType->getOffsetValueType($dimType)->isNull()->no()) {
continue;
}
|