diff options
author | Aaron Schulz <aschulz@wikimedia.org> | 2017-09-22 17:38:46 +0200 |
---|---|---|
committer | Aaron Schulz <aschulz@wikimedia.org> | 2017-09-22 17:38:46 +0200 |
commit | 894dffc67fa90ac3a2bd80aaae4842f4cf1897f9 (patch) | |
tree | faa7f8714169462250a611b8e311cc58e0bf0410 /includes/libs/MapCacheLRU.php | |
parent | 7028454158a9a344b975f3862f2f63a5358aa35d (diff) | |
download | mediawikicore-894dffc67fa90ac3a2bd80aaae4842f4cf1897f9.tar.gz mediawikicore-894dffc67fa90ac3a2bd80aaae4842f4cf1897f9.zip |
Remove use of MWException in MapCacheLRU
Change-Id: I830555ffcb1b50bdc54e552daa469e2c5e00611d
Diffstat (limited to 'includes/libs/MapCacheLRU.php')
-rw-r--r-- | includes/libs/MapCacheLRU.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/libs/MapCacheLRU.php b/includes/libs/MapCacheLRU.php index db6869bd5328..c92769fc4ecc 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 ); } |