From 66df6ea1a9559f51e611252a6e284ad5f3825b17 Mon Sep 17 00:00:00 2001 From: Michiel Brandenburg Date: Tue, 23 Jul 2013 12:23:34 +0200 Subject: [PATCH] replaceCommonSourcePath, parseSourceDirectory, getCommonSourcePath expect an array and not null (happens when there are no errors) --- src/ErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ErrorHandler.php b/src/ErrorHandler.php index 1a6aba7..50901a0 100644 --- a/src/ErrorHandler.php +++ b/src/ErrorHandler.php @@ -257,7 +257,7 @@ public function getErrorsByFile ($cbXMLFile, $fileName) public function getFilesWithErrors ($cbXMLFileName) { $element = $this->cbXMLHandler->loadXML($cbXMLFileName); - $files = null; + $files = array(); $path = ''; foreach ($element->children() as $file) {