summaryrefslogtreecommitdiffstats
path: root/Autoload-php53.patch
blob: 0ce1961c613ebb12c6d5f437d100f325fb8df981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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);