Skip to content

Disable sort when limit is explicit #661

Disable sort when limit is explicit

Disable sort when limit is explicit #661

Triggered via pull request September 29, 2024 11:58
Status Failure
Total duration 1m 7s
Artifacts

mutation.yml

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

Annotations

1 error and 1 warning
mutation / PHP 8.1-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.1-ubuntu-latest: src/Paginator/OffsetPaginator.php#L228
Escaped Mutant for Mutator "InstanceOf_": --- Original +++ New @@ @@ if ($this->dataReader instanceof LimitableDataInterface && $this->dataReader->getLimit() !== null) { return false; } - return $this->dataReader instanceof SortableDataInterface; + return true; } public function withSort(?Sort $sort) : static {