Problem/Motivation

PHP 7.4 will stop receiving bug fixes in November 2021, before Drupal 9.3 comes out, although it will receive security support until November 2022.

Drupal 10 will require PHP 8, and it will usually be better for Drupal 9 sites to update to PHP 8 on 9.4 (along with their contrib modules), prior to updating to Drupal 10, so that each step involves smaller changes.

Given that, I think we should set DRUPAL_RECOMMENDED_PHP to PHP 8, either in Drupal 9.3 or Drupal 9.4, so that sites are encouraged to get onto a supported release earlier than later.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Drupal's recommended PHP version has been raised to PHP 8.0. Sites on PHP 7.4 or lower will begin to see suggestions to upgrade in the status report.

CommentFileSizeAuthor
#4 3214924.patch480 bytescatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch created an issue. See original summary.

Gábor Hojtsy’s picture

Title: Increase DRUPAL_RECOMMENDED_PHP to 8.0 » Increase DRUPAL_RECOMMENDED_PHP to 8.0 in Drupal 9.3 or 9.4
Parent issue: » #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)
Eric_A’s picture

Issue tags: +PHP 8.0

Is this still on the table for 9.3?
Is this a policy issue or does it need a patch?

catch’s picture

Status: Active » Needs review
FileSize
480 bytes

Needs a patch, don't think this is controversial.

Gábor Hojtsy’s picture

Status: Needs review » Reviewed & tested by the community
catch’s picture

Issue summary: View changes
Issue tags: +9.3.0 release notes

  • catch committed 0893b9b on 9.4.x
    Issue #3214924 by catch: Increase DRUPAL_RECOMMENDED_PHP to 8.0 in...

  • catch committed 1ce9497 on 9.3.x
    Issue #3214924 by catch: Increase DRUPAL_RECOMMENDED_PHP to 8.0 in...
catch’s picture

Status: Reviewed & tested by the community » Fixed

Since we need to get this in before rc, and no-one else is online at the moment, going to break the rules and commit my own patch. See if the two character change gets me into trouble...

Eric_A’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.