From d4d30974a9e736d2d2d47c19729df0e931688af0 Mon Sep 17 00:00:00 2001 From: miholeus Date: Fri, 7 Jul 2017 11:08:53 +0300 Subject: [PATCH] exclude null values from location --- src/Rocketeer/Services/Connections/Shell/Modules/Binaries.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Rocketeer/Services/Connections/Shell/Modules/Binaries.php b/src/Rocketeer/Services/Connections/Shell/Modules/Binaries.php index d2827cce2..ba90cb6ee 100644 --- a/src/Rocketeer/Services/Connections/Shell/Modules/Binaries.php +++ b/src/Rocketeer/Services/Connections/Shell/Modules/Binaries.php @@ -92,6 +92,8 @@ public function which($binary, $fallback = null, $prompt = true) $locations[] = $fallback; } + $locations = array_diff($locations, array(null)); + // Add command prompt if possible if ($this->hasCommand() && $prompt) { $prompt = 'Binary "'.$binary.'" could not be found, please enter the path to it';