Skip to content

Commit

Permalink
More specific Psalm type for PaginatorInterface::getPageSize() result
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Nov 19, 2024
1 parent a080786 commit 46c34d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
- Bug #195: Fix invalid count in `IterableDataReader` when limit or/and offset used (@vjik)
- Enh #201: Disable sorting when limit is set explicitly in a paginator (@samdark)
- Enh #202: Check that correct sort is passed to `withSort()` of keyset paginator (@samdark)
- Enh #207: More secific Psalm type for OffsetPaginator::withCurrentPage() (@samdark)
- Enh #207: More specific Psalm type for `OffsetPaginator::withCurrentPage()` parameter (@samdark)
- Enh #210: More specific Psalm type for `PaginatorInterface::getPageSize()` result (@vjik)

## 1.0.1 January 25, 2023

Expand Down
2 changes: 2 additions & 0 deletions src/Paginator/PaginatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ public function getPreviousToken(): ?PageToken;
* @see getCurrentPageSize()
*
* @return int Page size.
*
* @psalm-return positive-int
*/
public function getPageSize(): int;

Expand Down

0 comments on commit 46c34d2

Please sign in to comment.