8000 Fix · symfony/symfony@cb97802 · GitHub
[go: up one dir, main page]

Skip to content

Commit cb97802

Browse files
committed
Fix
1 parent c7825b7 commit cb97802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Uid/Uuid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static function isValid(string $uuid): bool
136136
return true;
137137
}
138138

139-
if (__CLASS__ === static::class && 'ffffffff-ffff-ffff-ffff-ffffffffffff' === strtr($uuid, 'F', 'f')) {
139+
if (self::MAX === strtr($uuid, 'F', 'f') && (\in_array(static::class, [__CLASS__, MaxUuid::class], true))) {
140140
return true;
141141
}
142142

0 commit comments

Comments
 (0)
0