From 778b00106f5026c7cff575b5f7d78a403b06d030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kon=C3=A1=C5=A1?= Date: Fri, 5 Feb 2021 11:19:29 +0100 Subject: [PATCH] Determine skip lint process failure by status code instead of stderr content --- src/ParallelLint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ParallelLint.php b/src/ParallelLint.php index 8137020..b1825f3 100644 --- a/src/ParallelLint.php +++ b/src/ParallelLint.php @@ -115,7 +115,7 @@ public function lint(array $files) if (!empty($waiting)) { $skipLintProcess->waitForFinish(); - if ($skipLintProcess->getErrorOutput()) { + if ($skipLintProcess->isFail()) { $message = "Error in skip-linting.php process\nError output: {$skipLintProcess->getErrorOutput()}"; throw new \Exception($message); }