mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-16 16:17:43 +03:00
change array declarations
This commit is contained in:
committed by
Ben Ramsey
parent
2074056769
commit
c4cc058f3d
+2
-2
@@ -300,14 +300,14 @@ class UuidFactory implements UuidFactoryInterface
|
||||
$timeHi = BinaryUtils::applyVersion(substr($hash, 12, 4), $version);
|
||||
$clockSeqHi = BinaryUtils::applyVariant(hexdec(substr($hash, 16, 2)));
|
||||
|
||||
$fields = array(
|
||||
$fields = [
|
||||
'time_low' => substr($hash, 0, 8),
|
||||
'time_mid' => substr($hash, 8, 4),
|
||||
'time_hi_and_version' => str_pad(dechex($timeHi), 4, '0', STR_PAD_LEFT),
|
||||
'clock_seq_hi_and_reserved' => str_pad(dechex($clockSeqHi), 2, '0', STR_PAD_LEFT),
|
||||
'clock_seq_low' => substr($hash, 18, 2),
|
||||
'node' => substr($hash, 20, 12),
|
||||
);
|
||||
];
|
||||
|
||||
return $this->uuid($fields);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user