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

PHP 8.2 support (#1279)

* PHP 8.2 support

* wip

* Apply fixes from StyleCI

* wip

* wip

* wip

* Update tests.yml

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Dries Vints
2022-09-08 13:37:17 +02:00
committed by GitHub
parent bc56e30185
commit d0d42acff7
5 changed files with 8 additions and 2 deletions

View File

@@ -9,6 +9,7 @@ class Brew
{
const SUPPORTED_PHP_VERSIONS = [
'php',
'php@8.2',
'php@8.1',
'php@8.0',
'php@7.4',

View File

@@ -168,7 +168,7 @@ public function fpmConfigPath($phpVersion = null)
$versionNormalized = $this->normalizePhpVersion($phpVersion === 'php' ? Brew::LATEST_PHP_VERSION : $phpVersion);
$versionNormalized = preg_replace('~[^\d\.]~', '', $versionNormalized);
return BREW_PREFIX."/etc/php/${versionNormalized}/php-fpm.d/valet-fpm.conf";
return BREW_PREFIX."/etc/php/{$versionNormalized}/php-fpm.d/valet-fpm.conf";
}
/**