From 14339daefd1e562eb9d6a661c2f3c145cdf92b0d Mon Sep 17 00:00:00 2001 From: Simone Pasquini Date: Tue, 15 Feb 2022 09:14:14 +0000 Subject: [PATCH 1/2] Removed deprecation for using array_key_exists() on objects --- library/Zend/Registry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Registry.php b/library/Zend/Registry.php index 4d9036a9..5fe6f88b 100644 --- a/library/Zend/Registry.php +++ b/library/Zend/Registry.php @@ -203,7 +203,7 @@ public function __construct($array = array(), $flags = parent::ARRAY_AS_PROPS) */ public function offsetExists($index) { - return array_key_exists($index, $this); + return in_array($index, array_keys($this->getArrayCopy())); } } From 45444752ece98d5bbd7956076ecd40e95ede7ac3 Mon Sep 17 00:00:00 2001 From: Simone Pasquini Date: Thu, 21 Apr 2022 13:45:40 +0000 Subject: [PATCH 2/2] Remove deprecation curly Array and string offset access syntax with curly braces is deprecated --- library/Zend/Loader/PluginLoader.php | 2 +- library/Zend/Wildfire/Plugin/FirePhp.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/Zend/Loader/PluginLoader.php b/library/Zend/Loader/PluginLoader.php index ca4f1554..b6b1da20 100644 --- a/library/Zend/Loader/PluginLoader.php +++ b/library/Zend/Loader/PluginLoader.php @@ -128,7 +128,7 @@ protected function _formatPrefix($prefix) } $last = strlen($prefix) - 1; - if ($prefix{$last} == '\\') { + if ($prefix[$last] == '\\') { return $prefix; } diff --git a/library/Zend/Wildfire/Plugin/FirePhp.php b/library/Zend/Wildfire/Plugin/FirePhp.php index 6ca2f7aa..fcefc3ec 100644 --- a/library/Zend/Wildfire/Plugin/FirePhp.php +++ b/library/Zend/Wildfire/Plugin/FirePhp.php @@ -737,7 +737,7 @@ protected function _encodeObject($object, $objectDepth = 1, $arrayDepth = 1) $name = $raw_name = $just_name; - if ($name{0} == "\0") { + if ($name[0] == "\0") { $parts = explode("\0", $name); $name = $parts[2]; }