X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2Fobjectcache%2FBagOStuff.php;h=a7ef3d57811e2c3de951d77622d2995712634159;hb=f2d4db9d03a984d998db9044e63e548597511eb6;hp=c6bcc7a841f168461965f2d65a8d0d913a29433f;hpb=e3cfa25e71fab040a5ecf7784493b0ecd11579aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/objectcache/BagOStuff.php b/includes/libs/objectcache/BagOStuff.php index c6bcc7a841..a7ef3d5781 100644 --- a/includes/libs/objectcache/BagOStuff.php +++ b/includes/libs/objectcache/BagOStuff.php @@ -64,7 +64,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface { protected $keyspace = 'local'; /** @var LoggerInterface */ protected $logger; - /** @var callback|null */ + /** @var callable|null */ protected $asyncHandler; /** @var int Seconds */ protected $syncTimeout; @@ -462,7 +462,7 @@ abstract class BagOStuff implements IExpiringStore, LoggerAwareInterface { $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!