Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the latest PHP to 8 #60

Merged
merged 1 commit into from
Oct 26, 2023
Merged

Change the latest PHP to 8 #60

merged 1 commit into from
Oct 26, 2023

Conversation

desrosj
Copy link
Contributor

@desrosj desrosj commented Dec 17, 2020

This changes the version of PHP used in the latest tags to 8.2.

I'm not sure we should merge this just yet though.

If we merge this, the latest PHPUnit image will become PHP 8 running PHPUnit 9.x, which is not supported by default by WordPress' test suite at the moment. Anyone relying on latest in their setups would potentially see their tests break.

@desrosj desrosj self-assigned this Dec 17, 2020
@desrosj
Copy link
Contributor Author

desrosj commented Oct 23, 2023

I think it's time for this to be revisited.

The main reason why this was risky when PHP 8.0 was released was due WordPress itself needing a bit more time to become compatible with PHP 8.x, and the changes in PHPUnit that required test classes to either be updated, or to run with the presence of a polyfill. Anyone that was using the latest tag could have seen their tests fail.

Looking at GitHub, there's very few people actually using these containers in a docker-compose.yml file. It seems that the containers have not been adopted past being used in a local development environment through wordpress-develop, so I think this can be changed pretty safely.

@desrosj desrosj marked this pull request as ready for review October 23, 2023 17:25
@desrosj desrosj merged commit 6f937b0 into trunk Oct 26, 2023
51 checks passed
@desrosj desrosj deleted the php-8-latest branch October 26, 2023 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants