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