Verify parameter for MapCacheLRU::has() can be passed to array_key_exists()
authorMark A. Hershberger <mah@everybody.org>
Sun, 30 Nov 2014 20:16:04 +0000 (15:16 -0500)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 23 Mar 2015 22:26:59 +0000 (15:26 -0700)
commit372ded2fea436bf0e61318991f903d61bde26366
treec642c30c7fa99a26f2d29e3254d6931eb98148df
parentf6d852f6e98cd3fd89a0fffddafa19345d970a3b
Verify parameter for MapCacheLRU::has() can be passed to array_key_exists()

This prevents warnings from PHP from array_key_exists().

Also make sure Title::newFromText throws an exception before it can trigger this.

Bug: T76305
Change-Id: I2b36b7a3b96b37e29fe06f69c13a185b3ec592a7
includes/Title.php
includes/libs/MapCacheLRU.php
tests/phpunit/includes/SampleTest.php