From 9308b6a6000f1e66b71eb206cf4997214eddcfaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Wed, 8 Nov 2023 06:38:32 +0100 Subject: [PATCH] Improve return type of UuidInterface::compareTo() (#508) --- src/UuidInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UuidInterface.php b/src/UuidInterface.php index 0a97808..cac9457 100644 --- a/src/UuidInterface.php +++ b/src/UuidInterface.php @@ -46,7 +46,7 @@ interface UuidInterface extends * * @param UuidInterface $other The UUID to compare * - * @return int -1, 0, or 1 if the UUID is less than, equal to, or greater than $other + * @return int<-1,1> -1, 0, or 1 if the UUID is less than, equal to, or greater than $other */ public function compareTo(UuidInterface $other): int;