Report array_column() reading a property absent from the array's object elements
#30388
tests.yml
on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
42s
Matrix: Integration tests
Matrix: Tests PHPUnit 11.x
Matrix: Tests with old PHPUnit
Matrix: Mutation Testing
Matrix: Levels tests
Annotations
3 errors and 2 warnings
|
Tests with old PHPUnit (8.1, ubuntu-latest)
Process completed with exit code 2.
|
|
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/ArrayColumnHelper.php#L171
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
// array_column() reads object properties (never ArrayAccess offsets), so
// only check when the elements are definitely objects. Array elements use
// offset access, scalars never have the member - leave those to other rules.
- if (!$iterableValueType->isObject()->yes()) {
+ if ($iterableValueType->isObject()->no()) {
return [];
}
|
|
Mutation Testing (8.3, ubuntu-latest):
src/Type/Php/ArrayColumnHelper.php#L171
Escaped Mutant for Mutator "PHPStan\Infection\TrinaryLogicMutator":
@@ @@
// array_column() reads object properties (never ArrayAccess offsets), so
// only check when the elements are definitely objects. Array elements use
// offset access, scalars never have the member - leave those to other rules.
- if (!$iterableValueType->isObject()->yes()) {
+ if ($iterableValueType->isObject()->no()) {
return [];
}
|