Merge "Add editing own JSON to editmyoptions grant"
[lhc/web/wiklou.git] / includes / libs / objectcache / BagOStuff.php
index c6bcc7a..a7ef3d5 100644 (file)
@@ -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!