From: Aaron Schulz Date: Tue, 14 Aug 2018 05:52:22 +0000 (-0700) Subject: Improve MapCacheLRU error message X-Git-Tag: 1.34.0-rc.0~4455^2 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=b4da5a8181e6576f6c44a9ac7ffe156daf8dacf8;p=lhc%2Fweb%2Fwiklou.git Improve MapCacheLRU error message Bug: T201893 Change-Id: I74ef2cf31d83186f68e676da1b80c4c44ca28d69 --- diff --git a/includes/libs/MapCacheLRU.php b/includes/libs/MapCacheLRU.php index 4f1e7b07d4..3a549af7af 100644 --- a/includes/libs/MapCacheLRU.php +++ b/includes/libs/MapCacheLRU.php @@ -189,7 +189,9 @@ class MapCacheLRU implements IExpiringStore, Serializable { } if ( !is_array( $this->cache[$key] ) ) { - throw new UnexpectedValueException( "The value of '$key' is not an array." ); + $type = gettype( $this->cache[$key] ); + + throw new UnexpectedValueException( "The value of '$key' ($type) is not an array." ); } $this->cache[$key][$field] = $value;