Skip to content

Commit 3a8c69b

Browse files
committed
Fix type definition of ShortUrlsParams::itemsPerPage
1 parent 9c50ff2 commit 3a8c69b

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

module/CLI/test/Command/ShortUrl/ListShortUrlsCommandTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ public static function provideOptionalFlags(): iterable
202202
// phpcs:enable
203203
}
204204

205+
/**
206+
* @param positive-int|null $page
207+
*/
205208
#[Test, DataProvider('provideArgs')]
206209
public function serviceIsInvokedWithProvidedArgs(
207210
array $commandArgs,

module/Core/src/ShortUrl/Model/ShortUrlsParams.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* @param positive-int $page
27-
* @param positive-int $itemsPerPage
27+
* @param -1|positive-int $itemsPerPage
2828
* @param string[] $tags
2929
* @param string[] $excludeTags
3030
*/

0 commit comments

Comments
 (0)