Disable sort when limit is explicit #661
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
{
|