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

Updated SUPPORTED_PHP_VERSIONS and LATEST_PHP_VERSION constants to 7.4

This commit is contained in:
lee
2019-11-29 23:06:20 +01:00
parent 879c22f894
commit bfd2f3ea5d

View File

@@ -8,6 +8,7 @@ class Brew
{
const SUPPORTED_PHP_VERSIONS = [
'php',
'php@7.4',
'php@7.3',
'php@7.2',
'php@7.1',
@@ -20,7 +21,7 @@ class Brew
'php56'
];
const LATEST_PHP_VERSION = 'php@7.3';
const LATEST_PHP_VERSION = 'php@7.4';
var $cli, $files;
@@ -242,7 +243,7 @@ function linkedPhp()
$matches = $this->getParsedLinkedPhp();
$resolvedPhpVersion = $matches[3] ?: $matches[2];
return $this->supportedPhpVersions()->first(
return $this->supportedPhpVersions()->first(
function ($version) use ($resolvedPhpVersion) {
$resolvedVersionNormalized = preg_replace('/[^\d]/', '', $resolvedPhpVersion);
$versionNormalized = preg_replace('/[^\d]/', '', $version);