Skip to content

Commit

Permalink
fix: phpcr querybuilder setFirstResult method only accepts an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jun 12, 2024
1 parent a32ab50 commit 393d1b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ODM/PhpCr/IteratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function count(): int
/* @phpstan-ignore-next-line */
$queryBuilder->setMaxResults(null);
/* @phpstan-ignore-next-line */
$queryBuilder->setFirstResult(null);
$queryBuilder->setFirstResult(0);

$result = $queryBuilder->getQuery()->getResult(Query::HYDRATE_PHPCR);

Expand Down

0 comments on commit 393d1b8

Please sign in to comment.