mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
Modify php binary path to be based on brew prefix
This commit is contained in:
@@ -202,7 +202,7 @@ function stopService($services)
|
||||
*/
|
||||
function hasLinkedPhp()
|
||||
{
|
||||
return $this->files->isLink('/usr/local/bin/php');
|
||||
return $this->files->isLink(PHP_BINARY_PATH);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -216,7 +216,7 @@ function getParsedLinkedPhp()
|
||||
throw new DomainException("Homebrew PHP appears not to be linked.");
|
||||
}
|
||||
|
||||
$resolvedPath = $this->files->readLink('/usr/local/bin/php');
|
||||
$resolvedPath = $this->files->readLink(PHP_BINARY_PATH);
|
||||
|
||||
/**
|
||||
* Typical homebrew path resolutions are like:
|
||||
|
||||
Reference in New Issue
Block a user