We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e95fa3 commit c5b1ab2Copy full SHA for c5b1ab2
src/SPC/command/SwitchPhpVersionCommand.php
@@ -20,9 +20,9 @@ public function configure()
20
$this->addArgument(
21
'php-major-version',
22
InputArgument::REQUIRED,
23
- 'PHP major version (supported: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4)',
+ 'PHP major version (supported: 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5)',
24
null,
25
- fn () => ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
+ fn () => ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
26
);
27
$this->no_motd = true;
28
@@ -32,7 +32,7 @@ public function configure()
32
public function handle(): int
33
{
34
$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'])) {
+ if (!in_array($php_ver, ['7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5'])) {
36
// match x.y.z
37
preg_match('/^\d+\.\d+\.\d+$/', $php_ver, $matches);
38
if (!$matches) {
0 commit comments