mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
fixes
This commit is contained in:
@@ -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.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user