From 894dffc67fa90ac3a2bd80aaae4842f4cf1897f9 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 22 Sep 2017 17:38:46 +0200 Subject: [PATCH] Remove use of MWException in MapCacheLRU Change-Id: I830555ffcb1b50bdc54e552daa469e2c5e00611d --- includes/libs/MapCacheLRU.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.20.1