improved bin finder

This commit is contained in:
denisdulici 2020-05-09 16:12:57 +03:00
parent 0e73a2bf69
commit 88c4861c0a

View File

@ -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()