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

Set min. PHP version in Composer config #1311

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

szepeviktor
Copy link
Contributor

Just that.

@@ -11,6 +11,7 @@
}
],
"require": {
"php": "^5.3",
Copy link
Contributor

Choose a reason for hiding this comment

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

The platform PHP further down the file is set to 5.6.20 which matches the minimum version of WP core https://wordpress.org/about/requirements/

WordPress also works with PHP 5.6.20+ and MySQL 5.0+, but these versions have reached official End Of Life and as such may expose your site to security vulnerabilities.

Should we set this to >=5.6.20 then?

The goal is to support every PHP from 5.6.20 to 8.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not familiar with this project.

if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {

This line contains 5.3

Please decide what to do!
A month ago my default changed to PHP 8.0
and WP stats show 6.9% non-PHP7 versions https://wordpress.org/about/stats/#php_versions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Friendly ping 🏓

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.

None yet

2 participants