From 852798998bdb5fa993ae389d42882ee09a91005b Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Fri, 29 Sep 2023 15:58:50 +0200 Subject: [PATCH] `patches/shardj-zf1-future:` Add fix for `Zend_Form_Element::getValue()` --- patches/shardj-zf1-future.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/patches/shardj-zf1-future.patch b/patches/shardj-zf1-future.patch index 3d36335..0c38514 100644 --- a/patches/shardj-zf1-future.patch +++ b/patches/shardj-zf1-future.patch @@ -9,3 +9,14 @@ { foreach ($this->getFilters() as $filter) { $value = $filter->filter($value); +@@ -612,7 +612,9 @@ class Zend_Form_Element implements Zend_Validate_Interface + $valueFiltered = $this->_value; + + if ($this->isArray() && is_array($valueFiltered)) { +- array_walk_recursive($valueFiltered, [$this, '_filterValue']); ++ array_walk_recursive($valueFiltered, function (&$val, $key) { ++ $this->_filterValue($val, $key); ++ }); + } else { + $this->_filterValue($valueFiltered, $valueFiltered); + }