From 59e77dc81cf657e7eb4e2aadebf2f3992aba526a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1chym=20Tou=C5=A1ek?= Date: Wed, 28 Jun 2023 15:59:55 +0200 Subject: [PATCH] Improve return type of UuidInterface::compareTo() --- src/UuidInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UuidInterface.php b/src/UuidInterface.php index 0a978080..cac9457d 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;