Skip to content

Change default PHP version to 8.3 and update tests - #1352

Merged
wojtekn merged 1 commit into
trunkfrom
update/default-php-to-8.3
May 8, 2025
Merged

Change default PHP version to 8.3 and update tests#1352
wojtekn merged 1 commit into
trunkfrom
update/default-php-to-8.3

Conversation

@wojtekn

@wojtekn wojtekn commented May 8, 2025

Copy link
Copy Markdown
Contributor

Related issues

Proposed Changes

  • I propose to change the default PHP version to 8.3 to match the version used by WordPress.com sites and update tests accordingly.

Testing Instructions

  1. Add a new site
  2. Confirm it uses PHP 8.3
  3. Confirm version can be changed to another one

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?
@wojtekn
wojtekn requested a review from a team May 8, 2025 08:34
@wojtekn wojtekn self-assigned this May 8, 2025

@bcotrim bcotrim left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described and all tests pass
LGTM 👍

One minor comment: have you considered using the DEFAULT_PHP_VERSION in the tests? I don't see any downsides and it avoids us needing to change all the tests in the future.

@wojtekn
wojtekn merged commit 850e683 into trunk May 8, 2025
@wojtekn
wojtekn deleted the update/default-php-to-8.3 branch May 8, 2025 12:23
@wojtekn

wojtekn commented May 8, 2025

Copy link
Copy Markdown
Contributor Author

One minor comment: have you considered using the DEFAULT_PHP_VERSION in the tests? I don't see any downsides and it avoids us needing to change all the tests in the future.

Not a strong opinion, but it seems to me that it is clearer if the test uses explicit data instead of constant/variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants