Skip to content

Commit

Permalink
More updates and fixed PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 21, 2023
1 parent 6acb6a3 commit ab3b818
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 37 deletions.
72 changes: 36 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/Pagination/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final class Paginator
private int $numResults;

/**
* @var \Traversable<int, object>
* @var \Traversable<array-key, object>
*/
private \Traversable $results;

Expand All @@ -59,6 +59,7 @@ public function paginate(int $page = 1): self
$query->setHint(CountWalker::HINT_DISTINCT, false);
}

/** @var DoctrinePaginator<object> $paginator */
$paginator = new DoctrinePaginator($query, true);

/** @var array<string, mixed> $havingDqlParts */
Expand Down

0 comments on commit ab3b818

Please sign in to comment.