From: Aaron Schulz Date: Fri, 22 Sep 2017 15:38:46 +0000 (+0200) Subject: Remove use of MWException in MapCacheLRU X-Git-Tag: 1.31.0-rc.0~1989^2 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=894dffc67fa90ac3a2bd80aaae4842f4cf1897f9;p=lhc%2Fweb%2Fwiklou.git Remove use of MWException in MapCacheLRU Change-Id: I830555ffcb1b50bdc54e552daa469e2c5e00611d --- diff --git a/includes/libs/MapCacheLRU.php b/includes/libs/MapCacheLRU.php index db6869bd53..c92769fc4e 100644 --- a/includes/libs/MapCacheLRU.php +++ b/includes/libs/MapCacheLRU.php @@ -76,7 +76,8 @@ class MapCacheLRU { */ public function has( $key ) { if ( !is_int( $key ) && !is_string( $key ) ) { - throw new MWException( __METHOD__ . ' called with invalid key. Must be string or integer.' ); + throw new UnexpectedValueException( + __METHOD__ . ' called with invalid key. Must be string or integer.' ); } return array_key_exists( $key, $this->cache ); }