Skip to content

Merge rules from PHP attributes with rules provided via getRules() method #4580

Merge rules from PHP attributes with rules provided via getRules() method

Merge rules from PHP attributes with rules provided via getRules() method #4580

Triggered via pull request September 7, 2024 08:45
Status Failure
Total duration 3m 24s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.3-ubuntu-latest: src/DataSet/ObjectDataSet.php#L258
Escaped Mutant for Mutator "SpreadOneItem": --- Original +++ New @@ @@ $rules[$key] = $value; continue; } - $rules[$key] = is_iterable($rules[$key]) ? [...$value, ...$rules[$key]] : [...$value, $rules[$key]]; + $rules[$key] = is_iterable($rules[$key]) ? [[...$value][0], ...$rules[$key]] : [...$value, $rules[$key]]; } return $rules; }
mutation / PHP 8.3-ubuntu-latest: src/Helper/ObjectParser.php#L265
Escaped Mutant for Mutator "ArrayOneItem": --- Original +++ New @@ @@ } } $this->setCacheItem('labels', $labels); - return $labels; + return count($labels) > 1 ? array_slice($labels, 0, 1, true) : $labels; } /** * Returns a property value of the parsed object.