Skip to content

Commit 884753b

Browse files
committed
fixes
1 parent 466d66e commit 884753b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cli/Valet/Brew.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function linkedPhp()
182182
$resolvedPath = $this->files->readLink('/usr/local/bin/php');
183183

184184
return $this->supportedPhpVersions()->first(function ($version) use ($resolvedPath) {
185-
return strpos($resolvedPath, $version) !== false;
185+
return strpos($resolvedPath, "/$version/") !== false;
186186
}, function () {
187187
throw new DomainException("Unable to determine linked PHP.");
188188
});

cli/Valet/PhpFpm.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function restart()
9595
*/
9696
function stop()
9797
{
98-
$this->brew->stopService('php56', 'php70', 'php71', 'php72');
98+
$this->brew->stopService('php56', 'php70', 'php71', 'php72', 'php');
9999
}
100100

101101
/**
@@ -106,6 +106,7 @@ function stop()
106106
function fpmConfigPath()
107107
{
108108
$confLookup = [
109+
'php' => '/usr/local/etc/php/7.2/php-fpm.d/www.conf',
109110
'php72' => '/usr/local/etc/php/7.2/php-fpm.d/www.conf',
110111
'php71' => '/usr/local/etc/php/7.1/php-fpm.d/www.conf',
111112
'php70' => '/usr/local/etc/php/7.0/php-fpm.d/www.conf',

0 commit comments

Comments
 (0)