1
0
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:
soilSpoon
2020-11-14 21:42:13 +09:00
parent c2fe653dd0
commit 6a4cb74392
3 changed files with 14 additions and 12 deletions

View File

@@ -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: