mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-25 17:45:35 +03:00
feat: narrow the clock sequence type hints
This commit is contained in:
@@ -124,6 +124,7 @@ class DceSecurityGenerator implements DceSecurityGeneratorInterface
|
||||
|
||||
// Shift the clock sequence 8 bits to the left, so it matches 0x3f00.
|
||||
if ($clockSeq !== null) {
|
||||
/** @var int<0, 16383> $clockSeq */
|
||||
$clockSeq = $clockSeq << 8;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user