From bfd2f3ea5dcd6d487cf5c1636b1b3cf9b7b81c8d Mon Sep 17 00:00:00 2001 From: lee Date: Fri, 29 Nov 2019 23:06:20 +0100 Subject: [PATCH] Updated SUPPORTED_PHP_VERSIONS and LATEST_PHP_VERSION constants to 7.4 --- cli/Valet/Brew.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/Valet/Brew.php b/cli/Valet/Brew.php index 75586b6..b4e2477 100644 --- a/cli/Valet/Brew.php +++ b/cli/Valet/Brew.php @@ -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);