diff --git a/recipe/provision/php.php b/recipe/provision/php.php index 5d0e924be..5dc19d89a 100644 --- a/recipe/provision/php.php +++ b/recipe/provision/php.php @@ -4,14 +4,14 @@ set('php_version', function () { $defaultPhpVersion = file_exists('composer.json') - ? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.3'))[0] - : '8.3'; + ? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.4'))[0] + : '8.4'; if (count(($parts = explode('.', $defaultPhpVersion))) > 2) { $defaultPhpVersion = "$parts[0].$parts[1]"; } - return ask(' What PHP version to install? ', $defaultPhpVersion, ['5.6', '7.4', '8.0', '8.1', '8.2', '8.3']); + return ask(' What PHP version to install? ', $defaultPhpVersion, ['5.6', '7.4', '8.2', '8.3', '8.4', '8.5']); }); desc('Installs PHP packages');