Drop support for PHP < 7.2 #2614
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Drop support for PHP < 7.2
This commit is a plain version drop.
This commit does not include:
These things can be addressed at will in follow up PRs.
Fixes #2606
Tests: use standardized fixture methods
As support for PHPUnit < 8.0 will now be dropped, we no longer need to use the
@before/@after[Class] annotations for fixture methods and can revert back to using the standard PHPUnitsetUp|tearDown[BeforeClass]()fixture methods (with avoidreturn type).GH Actions: remove build with special set of extensions
There was a special build included which is supposed disable Mbstring and record code coverage, but the
extensionskey was missing from thesetup-phpaction runner, so Mbstring was never disabled....Another thing to know about this build is that Mbstring is a required extension for PHPUnit, but it is only really needed when PHPUnit is run with the
--testdoxCLI flag.In later PHPUnit versions, this requirement is enforced across the board (Composer + PHAR), but that's not yet the case for the PHPUnit 8 PHAR file. However, as we run the tests via a Composer install, that install will still fail on the PHPUnit
mbstringrequirement.All in all, this build adds nothing and can be removed.
Suggested changelog entry
The minimum supported PHP version is now PHP 7.2 (was PHP 5.4).