* @return bool
*/
public function has( $key ) {
- if ( is_string( $key ) || is_integer( $key ) ) {
- return array_key_exists( $key, $this->cache );
- }
- wfWarn( __METHOD__ . ": Key passed isn't a string or an integer.", 2 );
- return false;
+ return array_key_exists( $key, $this->cache );
}
/**