From fe281e5c75eb520d4d7fdd990efea12e95f544bb Mon Sep 17 00:00:00 2001 From: Stephen Ball Date: Thu, 22 Oct 2015 15:31:33 +0100 Subject: [PATCH] Update Lint.php --- PHPCI/Plugin/Lint.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PHPCI/Plugin/Lint.php b/PHPCI/Plugin/Lint.php index 11c0c620..73031dd3 100644 --- a/PHPCI/Plugin/Lint.php +++ b/PHPCI/Plugin/Lint.php @@ -161,9 +161,7 @@ class Lint implements PHPCI\Plugin, PHPCI\ZeroConfigPlugin */ protected function lintFile($php, $path) { - $success = true; - - if (!$this->phpci->executeCommand($php . ' -d display_errors=0 -l "%s" 2>&1', $this->phpci->buildPath . $path)) { + if (!$this->phpci->executeCommand($php . ' -d error_reporting=E_ALL -d display_errors=0 -n -l "%s" 2>&1', $this->phpci->buildPath . $path)) { $output = $this->phpci->getLastOutput(); preg_match('/Parse error:\s*syntax error,(.+?)\s+in\s+.+?\s*line\s+(\d+)/', $output, $matches);