mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 08:30:07 +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.");
|
||||
});
|
||||
|
||||
@@ -95,7 +95,7 @@ function restart()
|
||||
*/
|
||||
function stop()
|
||||
{
|
||||
$this->brew->stopService('php56', 'php70', 'php71', 'php72');
|
||||
$this->brew->stopService('php56', 'php70', 'php71', 'php72', 'php');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -106,6 +106,7 @@ function stop()
|
||||
function fpmConfigPath()
|
||||
{
|
||||
$confLookup = [
|
||||
'php' => '/usr/local/etc/php/7.2/php-fpm.d/www.conf',
|
||||
'php72' => '/usr/local/etc/php/7.2/php-fpm.d/www.conf',
|
||||
'php71' => '/usr/local/etc/php/7.1/php-fpm.d/www.conf',
|
||||
'php70' => '/usr/local/etc/php/7.0/php-fpm.d/www.conf',
|
||||
|
||||
Reference in New Issue
Block a user