File: shardj-zf1-future.patch

package info (click to toggle)
icinga-php-thirdparty 0.13.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 79,868 kB
  • sloc: xml: 606,701; php: 356,236; javascript: 29,395; sql: 121; makefile: 67; sh: 6
file content (22 lines) | stat: -rw-r--r-- 965 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- a/vendor/shardj/zf1-future/library/Zend/Form/Element.php
+++ b/vendor/shardj/zf1-future/library/Zend/Form/Element.php
@@ -595,7 +595,7 @@ class Zend_Form_Element implements Zend_Validate_Interface
      * @param  string $key
      * @return void
      */
-    protected function _filterValue(&$value, $key)
+    protected function _filterValue(&$value, &$key)
     {
         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);
         }