Problem/Motivation
In #3252088: Increase Drupal::MINIMUM_PHP to 8.0.0 we bumped Drupal 10.0.x to PHP 8.0.0.
We have since discovered some Symfony components require PHP 8.0.2 or above:
$ composer why-not symfony/event-dispatcher-contracts 3
symfony/event-dispatcher-contracts v3.0.0 requires php (>=8.0.2 but 8.0.0 is installed)
Steps to reproduce
Proposed resolution
Bump MINIMUM_PHP and related constants (e.g. in composer.json) to 8.0.2.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Drupal 10's minimum PHP version requirement is PHP 8.0.2. It will not be possible to run Drupal 10 on PHP 7 or earlier. However, there is a possibility that before Drupal 10's release, the PHP requirement will be raised again to PHP 8.1. See #3173787: [policy] Require PHP 8.1 for Drupal 10.0 if a dependency does, otherwise require PHP 8.0. (up from 7.3 in Drupal 9) for ongoing discussion.
Comments
Comment #2
longwaveComment #3
longwaveSymfony chose 8.0.2 because that was the version used on TravisCI, so that doesn't really affect us, but in order to be compatible we need the same or higher minimum version.
https://github.com/symfony/symfony/pull/41282#issuecomment-845030355
Comment #4
spokjeComment #5
spokjeComment #6
spokjeComment #7
spokjeComment #8
longwavePatch changes everything that was changed in the 8.0.0 upgrade, this looks correct to me. Thanks!
Comment #10
catchCommitted d87707c and pushed to 10.0.x. Thanks!
Comment #11
gábor hojtsyNote that after this commit, Drupal 10 can only be tested on PHP 8.1 due to DrupalCI not having 8.0.2. Opened #3255439: Update PHP 8.0.0 to PHP 8.0.13 on DrupalCI to allow Drupal 10 testing on PHP 8.0.x.
Comment #13
catchLet's roll this back until the environment is there.
Comment #14
longwave@mixologic reported in Slack that 8.0.13 should be used now, rerolled #5.
Comment #15
xjmThis will also need docs updates on the system requirements page:
https://www.drupal.org/docs/system-requirements/php-requirements
Comment #16
xjmComment #17
xjmDocs updates done: https://www.drupal.org/node/2891690/revisions/view/12498155/12504513
Comment #18
xjmComment #20
xjmAnd, committed #14. Thanks!
Adding credit for @Gábor Hojtsy for flagging the testbot issue.
Comment #21
xjmPublished the CR.