From def495e267d6ef761319489e31a6c2952db94faf Mon Sep 17 00:00:00 2001 From: jawira Date: Sun, 19 Sep 2021 09:03:52 +0200 Subject: [PATCH] Refactoring suggestion condition --- src/Phing/Task/System/ExecTask.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Phing/Task/System/ExecTask.php b/src/Phing/Task/System/ExecTask.php index 2349c6a9d7..7c20252d09 100644 --- a/src/Phing/Task/System/ExecTask.php +++ b/src/Phing/Task/System/ExecTask.php @@ -173,8 +173,7 @@ public function main() } // Suggest Task instead of executable - if ($this->executable) { - $hint = $this->findHint($this->executable); + if ($this->executable && ($hint = $this->findHint($this->executable))) { $this->log($hint, Project::MSG_VERBOSE); }