Skip to content

Commit 57e9267

Browse files
committed
use more expressive int type
1 parent 1444e41 commit 57e9267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CrawlDelay.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
final class CrawlDelay
1212
{
1313
/**
14-
* @param 0|positive-int $value
14+
* @param int<0, max> $value
1515
*/
1616
private function __construct(
1717
private int $value,
@@ -21,7 +21,7 @@ private function __construct(
2121
/**
2222
* @psalm-pure
2323
*
24-
* @param 0|positive-int $value
24+
* @param int<0, max> $value
2525
*/
2626
#[\NoDiscard]
2727
public static function of(int $value): self
@@ -46,7 +46,7 @@ public static function maybe(string $value): Maybe
4646
}
4747

4848
/**
49-
* @return 0|positive-int
49+
* @return int<0, max>
5050
*/
5151
#[\NoDiscard]
5252
public function toInt(): int

0 commit comments

Comments
 (0)