zend/Registry: Don't override method offsetExists()

It's not possible to use `array_key_exists()` on objects anymore
(https://www.php.net/manual/en/migration74.deprecated.php#migration74.deprecated.core.array-key-exists-objects)
and since the referenced bug (http://bugs.php.net/bug.php?id=40442)
only applied to PHP 5.2.0 it's now obsolete.
This commit is contained in:
Johannes Meyer 2019-12-04 09:52:53 +01:00
parent d34909bbac
commit 369ffa758e

View File

@ -189,16 +189,4 @@ class Zend_Registry extends ArrayObject
{ {
parent::__construct($array, $flags); parent::__construct($array, $flags);
} }
/**
* @param string $index
* @returns mixed
*
* Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960).
*/
public function offsetExists($index)
{
return array_key_exists($index, $this);
}
} }