From 9d35884e8225d0585e1db9d3332478008dee742c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 13 Jul 2018 15:15:52 +0100 Subject: [PATCH] Use func_num_args() in MapCacheLRU::clear() for sanity Change-Id: Ie11e18a342db0176271e4d08f56a99b0e3caacbe --- includes/libs/MapCacheLRU.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.20.1