Skip to content

Commit c05314f

Browse files
authored
[5.x] Utilise Illuminate\Support\php_binary() (#360)
This would improves installation on Laravel Herd Signed-off-by: Mior Muhammad Zaki <[email protected]>
1 parent 56898ec commit c05314f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NewCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,9 @@ protected function findComposer()
856856
*/
857857
protected function phpBinary()
858858
{
859-
$phpBinary = (new PhpExecutableFinder)->find(false);
859+
$phpBinary = function_exists('Illuminate\Support\php_binary')
860+
? \Illuminate\Support\php_binary()
861+
: (new PhpExecutableFinder)->find(false);
860862

861863
return $phpBinary !== false
862864
? ProcessUtils::escapeArgument($phpBinary)

0 commit comments

Comments
 (0)