Skip to content

Commit

Permalink
Fixing class check
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Mar 27, 2024
1 parent bc7d33d commit de18b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/CorrelationID.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit de18b52

Please sign in to comment.