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.
2 parents 3a2c08a + 88403a7 commit b036570Copy full SHA for b036570
src/Snowflake.php
@@ -60,7 +60,7 @@ class Snowflake
60
/**
61
* Create a new Snowflake instance.
62
*/
63
- public function __construct(int $timestamp = null, int $workerId = 1, int $datacenterId = 1)
+ public function __construct(?int $timestamp = null, int $workerId = 1, int $datacenterId = 1)
64
{
65
if ($timestamp === null) {
66
$timestamp = strtotime(self::DEFAULT_EPOCH_DATETIME);
0 commit comments