summaryrefslogtreecommitdiffstats
path: root/Autoload-php53.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Autoload-php53.patch')
-rw-r--r--Autoload-php53.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/Autoload-php53.patch b/Autoload-php53.patch
new file mode 100644
index 0000000..0ce1961
--- /dev/null
+++ b/Autoload-php53.patch
@@ -0,0 +1,22 @@
+From d8f950ded329f8a8715b8cbe114cd9c1123e0126 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 24 Apr 2019 13:58:37 +0200
+Subject: [PATCH] restore PHP 5.3 compatibility
+
+---
+ src/Application.php | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Application.php b/src/Application.php
+index 4d883ba..9f14aa6 100644
+--- a/src/Application.php
++++ b/src/Application.php
+@@ -86,7 +86,7 @@ private function runCollector() {
+ unset($scanner);
+ } else {
+ $file = new \SplFileInfo($directory);
+- $filter = $this->factory->getFilter(new \ArrayIterator([$file]));
++ $filter = $this->factory->getFilter(new \ArrayIterator(array($file)));
+ foreach($filter as $file) {
+ $this->logger->log('Scanning file ' . $file . "\n");
+ $collector->processFile($file);