From c66bb3fbb34ab875b5f0a27beec7a3249e9dd894 Mon Sep 17 00:00:00 2001 From: Cristiano Gomes Date: Fri, 12 May 2023 08:52:48 +0100 Subject: [PATCH] DQA-6996: Fix regression with php lint (#673) --- src/TaskRunner/Commands/LintCommands.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/TaskRunner/Commands/LintCommands.php b/src/TaskRunner/Commands/LintCommands.php index ed492dddd..b3256fc35 100644 --- a/src/TaskRunner/Commands/LintCommands.php +++ b/src/TaskRunner/Commands/LintCommands.php @@ -258,7 +258,12 @@ public function toolkitLintPhp(array $options = [ } } - return $this->collectionBuilder()->addTask($task->rawArg('.')); + $result = $task->rawArg('.')->run(); + if ($result->getExitCode() === 254) { + return ResultData::EXITCODE_OK; + } + + return $result->getExitCode(); } }