Problem/Motivation

Related issues:

In all of the above, we are still exploring whether we should (or even can) require PHP 8.1 for Drupal 10. However, we certainly can and should recommend it. There are a few PHP 8.1 issues still outstanding, but they are mostly feature requests or notices/deprecation warnings. The hard blockers for PHP 8.1 use (e.g. upstream dependency incompatibilities and fatals) have (mostly? entirely?) already been resolved in Drupal 9.3.

Proposed resolution

Remaining tasks

  • Update the system requirements docs accordingly.
  • Decide whether to additionally backport this recommendation to 9.4.

User interface changes

Users on PHP 8.0 will see the normal messaging about PHP 8.1 being the recommended version.

API changes

None.

Data model changes

None.

Release notes snippet

PHP 8.1 is now the recommended PHP version to use with Drupal 10. (It may be the required PHP version before 10.0.0 or in a future release.)

Issue fork drupal-3261357

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

xjm created an issue. See original summary.

xjm’s picture

Status: Active » Needs review
xjm’s picture

catch’s picture

Status: Needs review » Reviewed & tested by the community

Let's do it.

I also think we should backport this to 9.4, it'll be a solid six months since PHP 8.1's release when 9.4 comes out, and we (probably) won't have a later 9.x minor release to make the change in.

xjm’s picture

Docs updates done: https://www.drupal.org/node/2891690/revisions/view/12504513/12536671 (We might need to change it a little further when 9.4 goes into beta, but we'll already be updating the content for D10 around then anyway.)

  • 0198e04 committed on 10.0.x
    Issue #3261357 by xjm: Increase Drupal 10's RECOMMENDED_PHP to 8.1 now
    
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Committed 0198e04 and pushed to 10.0.x. Thanks! Published change record as well.

  • e1a1070 committed on 9.4.x
    Issue #3261357 by xjm: Increase Drupal 10's RECOMMENDED_PHP to 8.1 now...
gábor hojtsy’s picture

Version: 10.0.x-dev » 9.4.x-dev

And backported.

Status: Fixed » Closed (fixed)

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

xjm’s picture