From de18b5260cf72ffb1fe6a9931c0205e78c66a0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Thu, 28 Mar 2024 00:47:22 +0100 Subject: [PATCH] Fixing class check --- src/Utils/CorrelationID.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }