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;