From bd621746008ec3b04d5eb18cd479a5e4d849eca6 Mon Sep 17 00:00:00 2001 From: Baptiste Langlade Date: Sun, 5 Apr 2026 12:24:39 +0200 Subject: [PATCH] use int masks --- src/Period.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Period.php b/src/Period.php index e33169a..73c19df 100644 --- a/src/Period.php +++ b/src/Period.php @@ -101,7 +101,7 @@ public static function composite( /** * @psalm-pure * - * @param 0|positive-int $year + * @param int<0, max> $year */ #[\NoDiscard] public static function year(int $year): self @@ -121,7 +121,7 @@ public static function year(int $year): self /** * @psalm-pure * - * @param 0|positive-int $month + * @param int<0, max> $month */ #[\NoDiscard] public static function month(int $month): self @@ -149,7 +149,7 @@ public static function month(int $month): self /** * @psalm-pure * - * @param 0|positive-int $day + * @param int<0, max> $day */ #[\NoDiscard] public static function day(int $day): self @@ -169,7 +169,7 @@ public static function day(int $day): self /** * @psalm-pure * - * @param 0|positive-int $hour + * @param int<0, max> $hour */ #[\NoDiscard] public static function hour(int $hour): self @@ -197,7 +197,7 @@ public static function hour(int $hour): self /** * @psalm-pure * - * @param 0|positive-int $minute + * @param int<0, max> $minute */ #[\NoDiscard] public static function minute(int $minute): self @@ -226,7 +226,7 @@ public static function minute(int $minute): self /** * @psalm-pure * - * @param 0|positive-int $second + * @param int<0, max> $second */ #[\NoDiscard] public static function second(int $second): self @@ -255,7 +255,7 @@ public static function second(int $second): self /** * @psalm-pure * - * @param 0|positive-int $millisecond + * @param int<0, max> $millisecond */ #[\NoDiscard] public static function millisecond(int $millisecond): self @@ -284,7 +284,7 @@ public static function millisecond(int $millisecond): self /** * @psalm-pure * - * @param 0|positive-int $microsecond + * @param int<0, max> $microsecond */ #[\NoDiscard] public static function microsecond(int $microsecond): self