diff --git a/src/Helper/CommandExecutor.php b/src/Helper/CommandExecutor.php index cac36a7f..b240a27e 100644 --- a/src/Helper/CommandExecutor.php +++ b/src/Helper/CommandExecutor.php @@ -295,7 +295,7 @@ public function findBinary($binary, $priorityPath = 'local', $binaryPath = '', $ return $existedBinary; } - if ($existedBinary = $this->findBinaryLocal($composerBin, $bin)) { + if (null !== $composerBin && $existedBinary = $this->findBinaryLocal($composerBin, $bin)) { return $existedBinary; } @@ -311,7 +311,7 @@ public function findBinary($binary, $priorityPath = 'local', $binaryPath = '', $ return $existedBinary; } - if ($existedBinary = $this->findBinaryLocal($composerBin, $bin)) { + if (null !== $composerBin && $existedBinary = $this->findBinaryLocal($composerBin, $bin)) { return $existedBinary; } @@ -327,7 +327,7 @@ public function findBinary($binary, $priorityPath = 'local', $binaryPath = '', $ return $existedBinary; } - if ($existedBinary = $this->findBinaryLocal($composerBin, $bin)) { + if (null !== $composerBin && $existedBinary = $this->findBinaryLocal($composerBin, $bin)) { return $existedBinary; } @@ -339,7 +339,7 @@ public function findBinary($binary, $priorityPath = 'local', $binaryPath = '', $ return $existedBinary; } } else { - if ($existedBinary = $this->findBinaryLocal($composerBin, $bin)) { + if (null !== $composerBin && $existedBinary = $this->findBinaryLocal($composerBin, $bin)) { return $existedBinary; }