From bb78f0e598fd2bd6a1abed8323924434df51bbf1 Mon Sep 17 00:00:00 2001 From: Ben Ramsey Date: Sun, 1 Mar 2020 16:19:40 -0600 Subject: [PATCH] Simplify comparison algorithm --- src/Uuid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Uuid.php b/src/Uuid.php index 0a34612..71f0067 100644 --- a/src/Uuid.php +++ b/src/Uuid.php @@ -305,7 +305,7 @@ class Uuid implements UuidInterface public function compareTo(UuidInterface $other): int { - $compare = strcmp($this->getInteger()->toString(), $other->getInteger()->toString()); + $compare = strcmp($this->toString(), $other->toString()); if ($compare < 0) { return -1;