diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e13920..f3236ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Paginator/PaginatorInterface.php b/src/Paginator/PaginatorInterface.php index 6c9bd06..5ee6aa9 100644 --- a/src/Paginator/PaginatorInterface.php +++ b/src/Paginator/PaginatorInterface.php @@ -78,6 +78,8 @@ public function getPreviousToken(): ?PageToken; * @see getCurrentPageSize() * * @return int Page size. + * + * @psalm-return positive-int */ public function getPageSize(): int;