Taken into account data reader limit in OffsetPaginator::getTotalItems()
#649
Annotations
1 error and 1 warning
Run roave infection.
Process completed with exit code 1.
|
Run roave infection.:
src/Paginator/OffsetPaginator.php#L205
Escaped Mutant for Mutator "GreaterThan":
--- Original
+++ New
@@ @@
{
$count = $this->dataReader->count();
$dataReaderLimit = $this->dataReader->getLimit();
- if ($dataReaderLimit !== null && $count > $dataReaderLimit) {
+ if ($dataReaderLimit !== null && $count >= $dataReaderLimit) {
return $dataReaderLimit;
}
return $count;
|
Loading