Join GitHub today
Increase minimum supported PHP version to 5.4 #4554
This was referenced
Dec 6, 2017
The version requirement has come up today in wp-cli/i18n-command#16. I agree with @schlessera that we might need to reinvestigate how to deal with this. Not only for the bump to 5.4, but also for future requirement changes.
For example, the i18n command might consist of multiple sub commands in the future, only one of which has a hard requirement for PHP 5.4 so far. This is being checked using the
Now, if you're on PHP 5.3 and still want to use all other i18n commands, you can't do that because of the composer dependency. Alain mentioned that installing WP-CLI over Composer would also break on PHP 5.3 in this case because of the version mismatch (assuming the i18n command is bundled with WP-CLI).
The only solution I can think of right now would be to use
In addition to that, the packages could also explicitly specify their minimum required PHP version (or even the WP-CLI version if needed. Using