From 126cfe487bd3bf9d2845e6ef2d307c46622222e4 Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Mon, 15 Jun 2026 09:53:05 +0530 Subject: [PATCH] feat(php): make PHP 8.4 the default version Bump the `--php` synopsis default from 8.3 to 8.4 so new sites use the same version already wired up for the `latest` image tag and the 8.x unsupported-version fallback. Also drop the redundant '8.2' fallback in the `--php` flag lookup: WP-CLI injects the synopsis `default:` into the args before the command runs, so the literal never executes and only drifted out of sync with the real default. --- src/WordPress.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WordPress.php b/src/WordPress.php index 602751b..2b1f666 100644 --- a/src/WordPress.php +++ b/src/WordPress.php @@ -133,7 +133,7 @@ public function __construct() { * [--php=] * : 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. * --- - * default: 8.3 + * default: 8.4 * options: * - 5.6 * - 7.0 @@ -305,7 +305,7 @@ public function create( $args, $assoc_args ) { $this->cache_type = \EE\Utils\get_flag_value( $assoc_args, 'cache' ); $wildcard_flag = \EE\Utils\get_flag_value( $assoc_args, 'wildcard' ); $this->site_data['site_ssl_wildcard'] = 'subdom' === $this->site_data['app_sub_type'] || $wildcard_flag ? true : false; - $this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php', '8.2' ); + $this->site_data['php_version'] = \EE\Utils\get_flag_value( $assoc_args, 'php' ); $this->site_data['app_admin_url'] = \EE\Utils\get_flag_value( $assoc_args, 'title', $this->site_data['site_url'] ); $this->site_data['app_admin_username'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-user', \EE\Utils\random_name_generator() ); $this->site_data['app_admin_password'] = \EE\Utils\get_flag_value( $assoc_args, 'admin-pass', '' );