Skip to content

Commit cb904d3

Browse files
committed
feat: update wordpress project types default php version to 8.2
1 parent c8b4842 commit cb904d3

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Project/Type/AbstractWordPressProjectType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function getAssetFiles(string $directory): Finder
4545
*/
4646
public function getDefaultPhpVersion(): string
4747
{
48-
return '7.4';
48+
return '8.2';
4949
}
5050

5151
/**

tests/Integration/Command/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function resolveDefaultPhpVersion(string $projectTypeSlug): string
207207
case 'wordpress':
208208
case 'bedrock':
209209
case 'radicle':
210-
return '7.4';
210+
return '8.2';
211211
default:
212212
throw new \InvalidArgumentException(sprintf('Unsupported project type slug "%s" for resolving default PHP version', $projectTypeSlug));
213213
}

tests/Unit/Project/Type/AbstractWordPressProjectTypeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function testGenerateEnvironmentConfigurationForStaging(): void
4242
$this->assertSame([
4343
'architecture' => 'arm64',
4444
'gateway' => false,
45-
'php' => '7.4',
45+
'php' => '8.2',
4646
'foo' => 'bar',
4747
'cron' => false,
4848
'warmup' => false,

tests/Unit/Project/Type/BedrockProjectTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testGenerateEnvironmentConfigurationForProduction(): void
7777
$this->assertSame([
7878
'architecture' => 'arm64',
7979
'gateway' => false,
80-
'php' => '7.4',
80+
'php' => '8.2',
8181
'foo' => 'bar',
8282
'build' => [
8383
'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev',
@@ -92,7 +92,7 @@ public function testGenerateEnvironmentConfigurationForStaging(): void
9292
$this->assertSame([
9393
'architecture' => 'arm64',
9494
'gateway' => false,
95-
'php' => '7.4',
95+
'php' => '8.2',
9696
'foo' => 'bar',
9797
'cron' => false,
9898
'warmup' => false,

tests/Unit/Project/Type/RadicleProjectTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testGenerateEnvironmentConfigurationForProduction(): void
7777
$this->assertSame([
7878
'architecture' => 'arm64',
7979
'gateway' => false,
80-
'php' => '7.4',
80+
'php' => '8.2',
8181
'foo' => 'bar',
8282
'build' => [
8383
'COMPOSER_MIRROR_PATH_REPOS=1 composer install --no-dev',
@@ -93,7 +93,7 @@ public function testGenerateEnvironmentConfigurationForStaging(): void
9393
$this->assertSame([
9494
'architecture' => 'arm64',
9595
'gateway' => false,
96-
'php' => '7.4',
96+
'php' => '8.2',
9797
'foo' => 'bar',
9898
'cron' => false,
9999
'warmup' => false,

tests/Unit/Project/Type/WordPressProjectTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function testGenerateEnvironmentConfigurationForProduction(): void
7878
$this->assertSame([
7979
'architecture' => 'arm64',
8080
'gateway' => false,
81-
'php' => '7.4',
81+
'php' => '8.2',
8282
'foo' => 'bar',
8383
], $projectType->generateEnvironmentConfiguration('production', ['foo' => 'bar'])->toArray());
8484
}
@@ -90,7 +90,7 @@ public function testGenerateEnvironmentConfigurationForStaging(): void
9090
$this->assertSame([
9191
'architecture' => 'arm64',
9292
'gateway' => false,
93-
'php' => '7.4',
93+
'php' => '8.2',
9494
'foo' => 'bar',
9595
'cron' => false,
9696
'warmup' => false,

0 commit comments

Comments
 (0)