Skip to content

Commit eb136e2

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

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

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/Docker/CreateDockerfileCommandTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ public static function provideProjectTypeDefaultPhpVersions(): array
4242
{
4343
return [
4444
['laravel', 'php-83'],
45-
['wordpress', 'php-74'],
46-
['bedrock', 'php-74'],
47-
['radicle', 'php-74'],
45+
['wordpress', 'php-82'],
46+
['bedrock', 'php-82'],
47+
['radicle', 'php-82'],
4848
];
4949
}
5050

@@ -59,7 +59,7 @@ public function testCreateDockerfile(): void
5959

6060
$this->assertStringContainsString('Created Dockerfile for PHP 8.2 and arm64 architecture', $tester->getDisplay());
6161
$this->assertFileExists($this->tempDir.'/Dockerfile');
62-
$this->assertStringContainsString('FROM --platform=linux/arm64 ymirapp/arm-php-runtime:php-74', (string) file_get_contents($this->tempDir.'/Dockerfile'));
62+
$this->assertStringContainsString('FROM --platform=linux/arm64 ymirapp/arm-php-runtime:php-82', (string) file_get_contents($this->tempDir.'/Dockerfile'));
6363
}
6464

6565
public function testCreateDockerfileAndConfigureProjectWithOption(): void
@@ -124,7 +124,7 @@ public function testCreateDockerfileWithArchitectureOption(): void
124124

125125
$this->assertStringContainsString('Created Dockerfile for PHP 8.2 and x86_64 architecture', $tester->getDisplay());
126126
$this->assertFileExists($this->tempDir.'/Dockerfile');
127-
$this->assertStringContainsString('FROM --platform=linux/amd64 ymirapp/php-runtime:php-74', (string) file_get_contents($this->tempDir.'/Dockerfile'));
127+
$this->assertStringContainsString('FROM --platform=linux/amd64 ymirapp/php-runtime:php-82', (string) file_get_contents($this->tempDir.'/Dockerfile'));
128128
}
129129

130130
public function testCreateDockerfileWithPhpOption(): void

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)