Make HashBagOStuff::lock() compatible with BagOStuff::lock
authoraude <aude.wiki@gmail.com>
Mon, 23 Feb 2015 11:35:55 +0000 (12:35 +0100)
committeraude <aude.wiki@gmail.com>
Mon, 23 Feb 2015 11:35:55 +0000 (12:35 +0100)
Fixes php strict standard error.

Bug: T90427
Change-Id: Ica2bddead9b5ad367510e898eeea1257a53b5b19

includes/objectcache/HashBagOStuff.php

index 9d65e38..2c8b05a 100644 (file)
@@ -77,7 +77,7 @@ class HashBagOStuff extends BagOStuff {
                return true;
        }
 
-       function lock( $key ) {
+       public function lock( $key, $timeout = 6, $expiry = 6 ) {
                return true;
        }