HomePhabricator

Verify parameter for MapCacheLRU::has() can be passed to array_key_exists()

Authored by MarkAHershberger.

Description

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