improved bin finder
This commit is contained in:
parent
0e73a2bf69
commit
88c4861c0a
@ -29,7 +29,9 @@ class Console
|
|||||||
|
|
||||||
public static function getPhpBinary()
|
public static function getPhpBinary()
|
||||||
{
|
{
|
||||||
return (new PhpExecutableFinder)->find(false) ?? 'php';
|
$bin = (new PhpExecutableFinder)->find(false);
|
||||||
|
|
||||||
|
return !empty($bin) ? $bin : 'php';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getArtisanBinary()
|
public static function getArtisanBinary()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user