Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
16 Dec 2025 at 04:25 UTC
Updated:
23 Oct 2026 at 18:25 UTC
Jump to comment: Most recent
Comments
Comment #4
mondrakeYep, the PHP 8.4 polyfill is not loaded by composer. Weirdly, the PHP 8.5 one is.
https://git.drupalcode.org/issue/drupal-3563359/-/jobs/7679099
Comment #5
mstrelan commentedIs there a package with symfony/polyfill-php84 in the replace section, perhaps?
Comment #6
mondrakeComment #8
nicxvan commentedCan this be closed as outdated?
Comment #9
mstrelan commentedShort answer to #8 is no. I will push an MR shortly. More info below.
I set the robots to work on this to answer the question and was able to replicate and pinpoint the issue.
\Drupal\Tests\package_manager\Build\TemplateProjectTestBase::createTestProjectdisables packagist and points at a locally generated repo. That repo is generated in::createVendorRepositorywhich explicitly unsetssymfony/polyfill-php84from the requirements. This also explains whysymfony/polyfill-php85is still available. There is also a comment before the unset:There is a simple explanation to this. They are not installed on newer versions because they appear in
replacesection ofdrupal/drupal.I think we should restore the array_any call, remove the line that unsets polyfill-php84, fix the comment that says we don't know what this does and then potentially look at dynamically populating that list to be unset, from the replace section of drupal/drupal.
Comment #13
mstrelan commentedFWIW #9 is mostly about 11.x, but it makes sense to resolve the @todo comment in main, and to provide a better explanation. I've created 2 MRs, one for main, one for 11.x.
We need a better issue title so it makes sense for main, but I couldn't think of how to word it.
Comment #14
smustgrave commentedThink the title is fine?
Should we have a test around this? Would be out of scope here but asking.
Comment #15
smustgrave commentedI'm being awful about using that tag sorry for the noise
Comment #19
catchI'm not sure how easy it would be to write a test that doesn't need to be kept up to date when we change minimum PHP versions / new polyfills are added (which would have the same problem), we could open a follow-up issue if someone has an idea how to do it.
Committed/pushed the respective MRs to main, 12.0.x and 11.x, thanks!