Skip to content

Commit 46e38a8

Browse files
xuanyanwowhzh
andauthored
Fixed sentry logger handle (#594)
* Get sentry current hub * CS Fxied --------- Co-authored-by: hzh <hzh@addcn.com>
1 parent 992ad08 commit 46e38a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Mutex/RedisServerMutex.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(
5656
$this->retryInterval = (int) ($options['retry_interval'] ?? 10);
5757
}
5858

59-
public function attempt(callable $callback = null): void
59+
public function attempt(?callable $callback = null): void
6060
{
6161
// Waiting for the server mutex.
6262
$this->timer->tick($this->retryInterval, function () {

src/Mutex/ServerMutexInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
interface ServerMutexInterface
1515
{
16-
public function attempt(callable $callback = null);
16+
public function attempt(?callable $callback = null);
1717

1818
public function release(bool $force = false);
1919
}

0 commit comments

Comments
 (0)