Skip to content

Commit 96e970d

Browse files
authored
Update PHP provisioning versions
1 parent 3e3ea6c commit 96e970d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

recipe/provision/php.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
set('php_version', function () {
66
$defaultPhpVersion = file_exists('composer.json')
7-
? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.3'))[0]
8-
: '8.3';
7+
? explode('|', preg_replace('/[^0-9.|]+/', '', json_decode(file_get_contents('composer.json'), true)['require']['php'] ?? '8.4'))[0]
8+
: '8.4';
99

1010
if (count(($parts = explode('.', $defaultPhpVersion))) > 2) {
1111
$defaultPhpVersion = "$parts[0].$parts[1]";
1212
}
1313

14-
return ask(' What PHP version to install? ', $defaultPhpVersion, ['5.6', '7.4', '8.0', '8.1', '8.2', '8.3']);
14+
return ask(' What PHP version to install? ', $defaultPhpVersion, ['5.6', '7.4', '8.2', '8.3', '8.4', '8.5']);
1515
});
1616

1717
desc('Installs PHP packages');

0 commit comments

Comments
 (0)