Bump PHP version requirement to 7.2+ #10094
Labels
Group: WordPress
Changes related to WordPress or Gutenberg integration
P2
Should do soon
Type: Enhancement
New feature or improvement of an existing feature
Feature Description
Last summer we changed the minimum version requirements for the WordPress plugin from PHP 5.6 and WP 5.3 to PHP 7.0 and WP 5.5, respectively. See #7551 for background.
The current telemetry numbers are promising enough that we should look into bumping the PHP version requirement even further.
Excerpt of telemetry data for the Web Stories plugin from our own analytics:
The highlights:
PHP 7.2 usage is still reasonably high, so my takeaway is to bump the minimum version requirement to PHP 7.2.
This would allow us to use more modern techniques in PHP development and drop some old baggage.
It would also make our build tooling a bit easier to maintain, since we currently install PHP-Scoper, PHPStan and others via
civicrm/composer-downloads-plugin
since they require newer versions of PHP, accumulating quite a few workarounds to make things work on PHP <7.2.Composer 2.3 will also increase the required PHP version to >=7.2.5, see https://blog.packagist.com/composer-2-2/
As for PHP-Scoper, it means we could even switch to the current
dev-master
version of it which makes our config a little simpler. See humbug/php-scoper#303Alternatives Considered
Additional Context
The text was updated successfully, but these errors were encountered: