diff --git a/src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php b/src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php index 5560b01bb..9ed37cf5f 100644 --- a/src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php +++ b/src/Phing/Task/Ext/Analyzer/Sonar/SonarTask.php @@ -275,7 +275,7 @@ private function validateExecutable() $isOk = false; foreach ($output as $line) { - if (preg_match('/Sonar(Qube )?Scanner \d+\\.\d+/', $line) === 1) { + if (preg_match('/Sonar(Qube )?Scanner( CLI)? \d+\\.\d+/', $line) === 1) { $isOk = true; break; }