Skip to content

Commit c864c3f

Browse files
node 20 removal (#1983)
1 parent fd451c7 commit c864c3f

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/Command/CodeStudio/CodeStudioWizardCommand.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,9 @@ private function promptForNodeHostingType(): string
378378
private function promptForNodeVersions(): string
379379
{
380380
$nodeVersions = [
381-
'NODE_version_20' => "20",
382381
'NODE_version_22' => "22",
383382
];
384-
$nodeChoice = $this->io->choice('Select a NODE version', array_values($nodeVersions), "20");
383+
$nodeChoice = $this->io->choice('Select a NODE version', array_values($nodeVersions), "22");
385384
$nodeKey = array_search($nodeChoice, $nodeVersions, true);
386385
return $nodeVersions[$nodeKey];
387386
}

tests/phpunit/src/Commands/CodeStudio/CodeStudioWizardCommandTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ public static function providerTestCommand(): array
144144
self::ARG_SECRET => self::$secret,
145145
],
146146
],
147-
// Application: Node_project, Basic, Node 20.
147+
// Application: Node_project, Basic, Node 22.
148148
[
149149
[self::getMockedGitLabProject(self::$gitLabProjectId)],
150150
[
151151
// Project type: Node_project.
152152
1,
153153
// Hosting type: Basic.
154154
0,
155-
// Node version: 20.
155+
// Node version: 22.
156156
0,
157157
// Do you want to continue?
158158
'y',
@@ -173,7 +173,7 @@ public static function providerTestCommand(): array
173173
// Hosting type: Advanced.
174174
1,
175175
// Node version: 22.
176-
1,
176+
0,
177177
// Do you want to continue?
178178
'y',
179179
// One time push?

0 commit comments

Comments
 (0)