protected $keyspace = 'local';
/** @var LoggerInterface */
protected $logger;
- /** @var callback|null */
+ /** @var callable|null */
protected $asyncHandler;
/** @var int Seconds */
protected $syncTimeout;
$fname = __METHOD__;
$expiry = min( $expiry ?: INF, self::TTL_DAY );
$loop = new WaitConditionLoop(
- function () use ( $key, $timeout, $expiry, $fname ) {
+ function () use ( $key, $expiry, $fname ) {
$this->clearLastError();
if ( $this->add( "{$key}:lock", 1, $expiry ) ) {
return true; // locked!