Skip to content

Report array_column() reading a property absent from the array's object elements #30388

Report array_column() reading a property absent from the array's object elements

Report array_column() reading a property absent from the array's object elements #30388

Triggered via pull request June 17, 2026 05:33
Status Failure
Total duration 16m 17s
Artifacts

tests.yml

on: pull_request
Matrix: Tests PHPUnit 12.x
Determine levels tests matrix
42s
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

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 []; }