diff --git a/app/Utilities/Console.php b/app/Utilities/Console.php index 808739682..b35eb4bf3 100644 --- a/app/Utilities/Console.php +++ b/app/Utilities/Console.php @@ -29,7 +29,9 @@ class Console public static function getPhpBinary() { - return (new PhpExecutableFinder)->find(false) ?? 'php'; + $bin = (new PhpExecutableFinder)->find(false); + + return !empty($bin) ? $bin : 'php'; } public static function getArtisanBinary()