Closed (fixed)
Project:
Drupal core
Version:
10.6.x-dev
Component:
other
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
25 Oct 2025 at 22:18 UTC
Updated:
26 Nov 2025 at 07:09 UTC
Jump to comment: Most recent
Drupal 11.2 recommends PHP 8.3, but PHP 8.4 has been available for nearly a year. Core currently only has two known bugs being tracked for PHP 8.4 compatibility, one of which is merely a deprecation warning and another of which is a whitespace issue.
Recommend PHP 8.4 in 11.3.
The administrative UI will present the usual information about PHP 8.4 being the recommended version depending on the installed PHP version of the site host.
PHP 8.4 is now the recommended PHP version for sites using Drupal 11.3 and above.
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
Comment #3
xjmComment #4
xjmAhem.
Comment #7
xjmWe should do this for both actually, since D10 also has no compatibility issues.
Comment #8
lostcarpark commentedMakes sense.
Although, when I install on 8.4, I still get a bunch of deprecation warnings from contrib modules.
Comment #9
xjm@lostcarpark, we don't block core on contrib. It's contrib's responsibility to stay up to date with core. :) Drupal 11 has been compatible with PHP 8.4 since 11.1 and the PHP 8.4 pipeline has been been available and passing with without deprecation warnings on core since before then, so it's high time to recommend the rest of the ecosystem follow suit.
Hopefully increasing this will encourage contrib to get updated. I imagine also switching over the default CI pipeline at some point will help.
Comment #10
lostcarpark commentedI fully agree, and I wasn't suggesting that should be a blocker.
Comment #11
smustgrave commentedDo we often change recommendation mid major? For 12 makes sense but seems odd for 11 and 10 just my thought
Comment #12
mstrelan commentedMajor is for updating the minimum supported version, no harm in changing a recommendation. I'm sure it happened several times throughout the 7.x and 8.x lifecycle.
Comment #13
xjmComment #14
longwaveWe made a similar change in Drupal 10.2: #3397110: Increase RECOMMENDED_PHP to 8.2 for Drupal 10.2 and again in 10.3: #3446936: Recommend PHP 8.3 in Drupal 10.3
Note that this isn't changing the minimum supported version, just that we recommend users go to 8.4; we will possible require 8.5 for Drupal 12 depending on what Symfony decides to do, so better to nudge users to newer versions now if we can.
Comment #19
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x and 10.6.x, thanks!
Comment #21
xjmAdded credit for @longwave for documenting the standard practice with our previous issues.
Comment #22
xjmAdded to the 11.3.0, 11.3.0-beta1, 10.6.0, and 10.6.0-beta1 release notes drafts.
Comment #23
tobiasbfyi: It was only set to 8.4 not 8.4.0. The other issues set it to 8.2.0/8.3.0.
Comment #24
xjm@tobiasb This was deliberate on my part. 8.2.0/8.3.0 was overly specific and done probably by reflex, rather than for any valid reason. We should only specify a patch version if we know we require or recommend a specific patch version (for example, if there is a bug fix in a previous patch version affecting us and we recommend e.g. 8.4.2 or something).