Skip to content

Commit 399b291

Browse files
committed
feat: php-fpm 8.5 support
1 parent af510c7 commit 399b291

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/Site_WP_Docker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function generate_docker_compose_yml( array $filters = [], $volumes ) {
6767
}
6868

6969
// PHP configuration.
70-
$php_image_key = ( 'latest' === $filters['php_version'] ? 'easyengine/php8.3' : 'easyengine/php' . $filters['php_version'] );
70+
$php_image_key = ( 'latest' === $filters['php_version'] ? 'easyengine/php8.4' : 'easyengine/php' . $filters['php_version'] );
7171

7272
$php['service_name'] = [ 'name' => 'php' ];
7373
$php['image'] = [ 'name' => $php_image_key . ':' . $img_versions[ $php_image_key ] ];

src/WordPress.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function __construct() {
131131
* : Set custom source directory for site inside htdocs.
132132
*
133133
* [--php=<php-version>]
134-
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and latest.
134+
* : PHP version for site. Currently only supports PHP 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5 and latest.
135135
* ---
136136
* default: 8.3
137137
* options:
@@ -145,6 +145,7 @@ public function __construct() {
145145
* - 8.2
146146
* - 8.3
147147
* - 8.4
148+
* - 8.5
148149
* - latest
149150
* ---
150151
*
@@ -371,7 +372,7 @@ public function create( $args, $assoc_args ) {
371372
}
372373
$this->site_data['alias_domains'] = substr( $this->site_data['alias_domains'], 0, - 1 );
373374

374-
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 'latest' ];
375+
$supported_php_versions = [ 5.6, 7.0, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 'latest' ];
375376
if ( ! in_array( $this->site_data['php_version'], $supported_php_versions ) ) {
376377
$old_version = $this->site_data['php_version'];
377378
$floor = (int) floor( $this->site_data['php_version'] );
@@ -381,7 +382,7 @@ public function create( $args, $assoc_args ) {
381382
$this->site_data['php_version'] = 7.4;
382383
$old_version .= ' yet';
383384
} elseif ( 8 === $floor ) {
384-
$this->site_data['php_version'] = 8.3;
385+
$this->site_data['php_version'] = 8.4;
385386
$old_version .= ' yet';
386387
} else {
387388
EE::error( 'Unsupported PHP version: ' . $this->site_data['php_version'] );

0 commit comments

Comments
 (0)