diff --git a/tests/Infrastructure/Common/TestComponents/ORM/MemoryRepository.php b/tests/Infrastructure/Common/TestComponents/ORM/MemoryRepository.php index 176189d..17a0415 100644 --- a/tests/Infrastructure/Common/TestComponents/ORM/MemoryRepository.php +++ b/tests/Infrastructure/Common/TestComponents/ORM/MemoryRepository.php @@ -335,7 +335,7 @@ function ($first, $second) use ($i, $indexKey) { private function sliceResults(QueryFilter $filter, array $result) { if ($filter->getLimit()) { - $result = array_slice($result, $filter->getOffset(), $filter->getLimit()); + $result = array_slice($result, $filter->getOffset()??0, $filter->getLimit()); } return $result;