roots / wordpress

Automatically updated WordPress Composer package
https://roots.io/composer-wordpress-resources/
MIT License
167 stars 17 forks source link

Maximum supported php version missing #14

Closed SimJoSt closed 2 years ago

SimJoSt commented 4 years ago

Description

The current composer.json only contains a minimum php version, but is missing a maximum one. As the Wordpress project has to make changes to it's code to support it fully in version 5.3 (https://make.wordpress.org/core/2019/10/11/wordpress-and-php-7-4/), an open ended php requirement doesn't make sense.
When using Wordpress through composer you expect it to support it to make use of the full feature set :)

Steps to reproduce

  1. all your project packages and dependencies to support php7.4 in your composer.json
  2. have wordpress version set to 5.2.*
  3. run composer update

Expected behavior: [What you expect to happen] An error, that the package roots/wordpress doesn't fulfill the requirement of php >=7.4

Actual behavior: [What actually happens] No errors and a php7.4 incompatible Wordpress version is installed.

Reproduces how often: [What percentage of the time does it reproduce?] Every time.

Versions

Additional information

I hope this is possible with the current automated setup.
Keep up the great work!

swalkinshaw commented 2 years ago

Does WP itself ever specify a max version? Currently it just says "7.4 or greater": https://en-ca.wordpress.org/about/requirements/

LeoColomb commented 2 years ago

WP does not specify a max version, I'm afraid. Nothing manageable from Roots perspective I guess.