From 6e3ad08aef5ffd86b2dd9f8714d9b99243f1ca7a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 2 Jun 2021 11:24:01 +0200 Subject: [PATCH] Zend: Fix `array_walk_recursive` pass by reference error on PHP8 refs #4287 --- library/vendor/Zend/Form/Element.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/vendor/Zend/Form/Element.php b/library/vendor/Zend/Form/Element.php index 4faf0d7f6..6e81ea68f 100644 --- a/library/vendor/Zend/Form/Element.php +++ b/library/vendor/Zend/Form/Element.php @@ -598,7 +598,9 @@ class Zend_Form_Element implements Zend_Validate_Interface $valueFiltered = $this->_value; if ($this->isArray() && is_array($valueFiltered)) { - array_walk_recursive($valueFiltered, array($this, '_filterValue')); + array_walk_recursive($valueFiltered, function (&$val, $key) { + $this->_filterValue($val, $key); + }); } else { $this->_filterValue($valueFiltered, $valueFiltered); }