From: Aaron Schulz Date: Fri, 13 Jul 2018 14:15:52 +0000 (+0100) Subject: Use func_num_args() in MapCacheLRU::clear() for sanity X-Git-Tag: 1.34.0-rc.0~4777^2 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=9d35884e8225d0585e1db9d3332478008dee742c;p=lhc%2Fweb%2Fwiklou.git Use func_num_args() in MapCacheLRU::clear() for sanity Change-Id: Ie11e18a342db0176271e4d08f56a99b0e3caacbe --- diff --git a/includes/libs/MapCacheLRU.php b/includes/libs/MapCacheLRU.php index 595dc1a1be..e891c9ed13 100644 --- a/includes/libs/MapCacheLRU.php +++ b/includes/libs/MapCacheLRU.php @@ -251,7 +251,7 @@ class MapCacheLRU implements IExpiringStore, Serializable { * @return void */ public function clear( $keys = null ) { - if ( $keys === null ) { + if ( func_num_args() == 0 ) { $this->cache = []; $this->timestamps = []; } else {