Skip to content

Commit fa2ea6c

Browse files
committed
Change patch definition for zf1-future
1 parent 44fc91e commit fa2ea6c

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

composer.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,13 @@
7171
"extra": {
7272
"composer-exit-on-patch-failure": true,
7373
"patches": {
74-
"shardj/zf1-future": {
75-
"ZF1-Future: ZF backward compatibility": "patches/shardj-zf1-future.patch"
76-
}
74+
"shardj/zf1-future": [
75+
{
76+
"description": "ZF1-Future: ZF backward compatibility",
77+
"url": "patches/shardj-zf1-future.patch",
78+
"depth": 1
79+
}
80+
]
7781
}
7882
}
7983
}

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

patches.lock.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"_hash": "1713a694c4f5c9dd242a51c083b66c36b9b4c363ed31c195999e391455d68afc",
3+
"patches": {
4+
"shardj/zf1-future": [
5+
{
6+
"package": "shardj/zf1-future",
7+
"description": "ZF1-Future: ZF backward compatibility",
8+
"url": "patches/shardj-zf1-future.patch",
9+
"sha256": "6abbcff07f33570cae8e022eee2859b28ac053e0574c32a7a45c5ee34680a034",
10+
"depth": 1,
11+
"extra": {
12+
"provenance": "root"
13+
}
14+
}
15+
]
16+
}
17+
}

patches/shardj-zf1-future.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- a/vendor/shardj/zf1-future/library/Zend/Form/Element.php
2-
+++ b/vendor/shardj/zf1-future/library/Zend/Form/Element.php
3-
@@ -595,7 +595,7 @@ class Zend_Form_Element implements Zend_Validate_Interface
1+
--- a/library/Zend/Form/Element.php
2+
+++ b/library/Zend/Form/Element.php
3+
@@ -601,7 +601,7 @@ class Zend_Form_Element implements Zend_Validate_Interface
44
* @param string $key
55
* @return void
66
*/
@@ -9,9 +9,9 @@
99
{
1010
foreach ($this->getFilters() as $filter) {
1111
$value = $filter->filter($value);
12-
@@ -612,7 +612,9 @@ class Zend_Form_Element implements Zend_Validate_Interface
12+
@@ -618,7 +618,9 @@ class Zend_Form_Element implements Zend_Validate_Interface
1313
$valueFiltered = $this->_value;
14-
14+
1515
if ($this->isArray() && is_array($valueFiltered)) {
1616
- array_walk_recursive($valueFiltered, [$this, '_filterValue']);
1717
+ array_walk_recursive($valueFiltered, function (&$val, $key) {

0 commit comments

Comments
 (0)