1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Fix return string with php-fpm config path for linked PHP

This commit is contained in:
Jesus Urrutia
2018-04-09 16:17:57 -03:00
parent d32afd808d
commit 0da2c6fc0e

View File

@@ -108,7 +108,8 @@ function stop()
*/
function fpmConfigPath()
{
return array_map(function ($version) {
$version = $this->brew->linkedPhp();
$versionNormalized = preg_replace(
'/php@?(\d)\.?(\d)/',
'$1.$2',
@@ -118,6 +119,5 @@ function fpmConfigPath()
return $versionNormalized === '5.6'
? '/usr/local/etc/php/5.6/php-fpm.conf'
: "/usr/local/etc/php/${versionNormalized}/php-fpm.d/www.conf";
}, Brew::SUPPORTED_PHP_VERSIONS);
}
}