1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00
This commit is contained in:
Taylor Otwell
2018-03-02 08:25:57 -06:00
parent 466d66eb9f
commit 884753b75e
2 changed files with 3 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ function linkedPhp()
$resolvedPath = $this->files->readLink('/usr/local/bin/php');
return $this->supportedPhpVersions()->first(function ($version) use ($resolvedPath) {
return strpos($resolvedPath, $version) !== false;
return strpos($resolvedPath, "/$version/") !== false;
}, function () {
throw new DomainException("Unable to determine linked PHP.");
});