We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d4a443 commit a60bf85Copy full SHA for a60bf85
lib/private/DB/Snowflake/SnowflakeGenerator.php
@@ -115,7 +115,7 @@ public function nextId(): string {
115
return gmp_strval($id);
116
} else {
117
// Faster version for 64-bits machine using bits-shifts
118
- return (string)((($currentTime - $timestamp) << $timestampLeftMoveLength)
+ return (string)(((int)($currentTime - $timestamp) << $timestampLeftMoveLength)
119
| ($this->datacenter << $datacenterLeftMoveLength)
120
| ($this->workerId << $workerLeftMoveLength)
121
| ((int)$this->isCLI << $isCLILeftMoveLength)
0 commit comments