From 66a008c9478acbb33886c593bfd78e8a175d24e3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 24 Apr 2019 14:06:00 +0200 Subject: - add patch for PHP 5.3 from https://github.com/theseer/Autoload/pull/86 --- Autoload-php53.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Autoload-php53.patch (limited to 'Autoload-php53.patch') 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 +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); -- cgit