diff --git a/src/Utils/CorrelationID.php b/src/Utils/CorrelationID.php index 8dbc207..38d63a9 100644 --- a/src/Utils/CorrelationID.php +++ b/src/Utils/CorrelationID.php @@ -34,7 +34,7 @@ class CorrelationID implements CorrelationIDInterface */ protected static function generate(): string { - if (class_alias('Ramsey\Uuid\Uuid', 'Uuid')) { + if (class_exists('Ramsey\Uuid\Uuid')) { /** @phpstan-ignore-next-line */ return Uuid::uuid4()->toString(); }