We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 992ad08 commit 46e38a8Copy full SHA for 46e38a8
src/Mutex/RedisServerMutex.php
@@ -56,7 +56,7 @@ public function __construct(
56
$this->retryInterval = (int) ($options['retry_interval'] ?? 10);
57
}
58
59
- public function attempt(callable $callback = null): void
+ public function attempt(?callable $callback = null): void
60
{
61
// Waiting for the server mutex.
62
$this->timer->tick($this->retryInterval, function () {
src/Mutex/ServerMutexInterface.php
@@ -13,7 +13,7 @@
13
14
interface ServerMutexInterface
15
16
- public function attempt(callable $callback = null);
+ public function attempt(?callable $callback = null);
17
18
public function release(bool $force = false);
19
0 commit comments