From 369ffa758ebe120464963404714dc0735912317b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 4 Dec 2019 09:52:53 +0100 Subject: [PATCH] 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. --- library/vendor/Zend/Registry.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/library/vendor/Zend/Registry.php b/library/vendor/Zend/Registry.php index a9a1b8fd0..59b971ee8 100644 --- a/library/vendor/Zend/Registry.php +++ b/library/vendor/Zend/Registry.php @@ -189,16 +189,4 @@ class Zend_Registry extends ArrayObject { 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); - } - }