Skip to content

Commit

Permalink
Fixed sentry logger handle (#594)
Browse files Browse the repository at this point in the history
* Get sentry current hub

* CS Fxied

---------

Co-authored-by: hzh <[email protected]>
  • Loading branch information
xuanyanwow and hzh committed Mar 19, 2024
1 parent 992ad08 commit 46e38a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Mutex/RedisServerMutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __construct(
$this->retryInterval = (int) ($options['retry_interval'] ?? 10);
}

public function attempt(callable $callback = null): void
public function attempt(?callable $callback = null): void
{
// Waiting for the server mutex.
$this->timer->tick($this->retryInterval, function () {
Expand Down
2 changes: 1 addition & 1 deletion src/Mutex/ServerMutexInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

interface ServerMutexInterface
{
public function attempt(callable $callback = null);
public function attempt(?callable $callback = null);

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

0 comments on commit 46e38a8

Please sign in to comment.