Skip to content

Commit c5b1ab2

Browse files
committed
Allow switching php version to 8.5
1 parent 1e95fa3 commit c5b1ab2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SPC/command/SwitchPhpVersionCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public function configure()
2020
$this->addArgument(
2121
'php-major-version',
2222
InputArgument::REQUIRED,
23-
'PHP major version (supported: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4)',
23+
'PHP major version (supported: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5)',
2424
null,
25-
fn () => ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
25+
fn () => ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
2626
);
2727
$this->no_motd = true;
2828

@@ -32,7 +32,7 @@ public function configure()
3232
public function handle(): int
3333
{
3434
$php_ver = $this->input->getArgument('php-major-version');
35-
if (!in_array($php_ver, ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4'])) {
35+
if (!in_array($php_ver, ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'])) {
3636
// match x.y.z
3737
preg_match('/^\d+\.\d+\.\d+$/', $php_ver, $matches);
3838
if (!$matches) {

0 commit comments

Comments
 (0)