Skip to content

Commit b036570

Browse files
authored
Merge pull request #55 from lonquan/main
Support for 8.4 nullable parameter
2 parents 3a2c08a + 88403a7 commit b036570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Snowflake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Snowflake
6060
/**
6161
* Create a new Snowflake instance.
6262
*/
63-
public function __construct(int $timestamp = null, int $workerId = 1, int $datacenterId = 1)
63+
public function __construct(?int $timestamp = null, int $workerId = 1, int $datacenterId = 1)
6464
{
6565
if ($timestamp === null) {
6666
$timestamp = strtotime(self::DEFAULT_EPOCH_DATETIME);

0 commit comments

Comments
 (0)