summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-validator-pr190.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-15 14:21:43 +0200
committerRemi Collet <remi@remirepo.net>2017-08-15 14:21:43 +0200
commite9dc135cd88f40ec3dbbc54cfac7274c65674cf4 (patch)
tree1b7e4270b3a1e4f51af0907a437047704747535f /php-zendframework-zend-validator-pr190.patch
parent5b70506cf318282378a5b2c750d36df16f7c43e5 (diff)
v2.10.0
Diffstat (limited to 'php-zendframework-zend-validator-pr190.patch')
-rw-r--r--php-zendframework-zend-validator-pr190.patch28
1 files changed, 0 insertions, 28 deletions
diff --git a/php-zendframework-zend-validator-pr190.patch b/php-zendframework-zend-validator-pr190.patch
deleted file mode 100644
index 1d46933..0000000
--- a/php-zendframework-zend-validator-pr190.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 61969df070bbfa3e889b253738828064b8ff211b Mon Sep 17 00:00:00 2001
-From: Remi Collet <remi@remirepo.net>
-Date: Fri, 4 Aug 2017 09:59:14 +0200
-Subject: [PATCH] fix for PHP 7.2, count(): Parameter must be an array or an
- object that implements Countable
-
----
- src/File/Upload.php | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/src/File/Upload.php b/src/File/Upload.php
-index 55025f63..b03dc4a6 100644
---- a/src/File/Upload.php
-+++ b/src/File/Upload.php
-@@ -109,10 +109,10 @@ public function getFiles($file = null)
- */
- public function setFiles($files = [])
- {
-- if (count($files) === 0) {
-- $this->options['files'] = $_FILES;
-- } else {
-+ if (is_array($files) && count($files) > 0) {
- $this->options['files'] = $files;
-+ } else {
-+ $this->options['files'] = $_FILES;
- }
-
- if ($this->options['files'] === null) {