diff --git a/src/NewCommand.php b/src/NewCommand.php index f9bef70..47a8d04 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -847,7 +847,9 @@ protected function findComposer() */ protected function phpBinary() { - $phpBinary = (new PhpExecutableFinder)->find(false); + $phpBinary = function_exists('Illuminate\Support\php_binary') + ? \Illuminate\Support\php_binary() + : (new PhpExecutableFinder)->find(false); return $phpBinary !== false ? ProcessUtils::escapeArgument($phpBinary)