Skip to content

Commit

Permalink
[5.x] Utilise Illuminate\Support\php_binary() (#360)
Browse files Browse the repository at this point in the history
This would improves installation on Laravel Herd

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone authored Oct 1, 2024
1 parent 56898ec commit c05314f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,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)
Expand Down

0 comments on commit c05314f

Please sign in to comment.