mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-13 01:51:50 +01:00
[BaseCollection] Fix incorrectly working limit() method
This commit is contained in:
@@ -248,7 +248,7 @@ abstract class BaseCollection implements CollectionInterface
|
||||
foreach ($result as $index => $element) {
|
||||
$iteration++;
|
||||
|
||||
if ($iteration < $offset || ($iteration >= $offset && $iteration < $max)) {
|
||||
if ($iteration >= $offset && $iteration < $offset + $max) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user