dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7028454
)
Remove use of MWException in MapCacheLRU
author
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 22 Sep 2017 15:38:46 +0000
(17:38 +0200)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Fri, 22 Sep 2017 15:38:46 +0000
(17:38 +0200)
Change-Id: I830555ffcb1b50bdc54e552daa469e2c5e00611d
includes/libs/MapCacheLRU.php
patch
|
blob
|
history
diff --git
a/includes/libs/MapCacheLRU.php
b/includes/libs/MapCacheLRU.php
index
db6869b
..
c92769f
100644
(file)
--- 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 );
}