Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since Drupal 10 requires PHP 8.1+ there is no point in keeping the polyfill symfony/polyfill-php80
.
symfony/polyfill-php74
Isn't currently required by any of our dependencies currently (72, 73 and 80 are).
Same goes for symfony/polyfill-php81
.
So technically removing them, is not needed _now_.
Having stressed that last word: Why not be complete, it doesn't cause issues now and will prevent symfony/polyfill-php74
or -php81
hopping on board later on.
Comment | File | Size | Author |
---|---|---|---|
#30 | 3296390-30.patch | 5.67 KB | Spokje |
| |||
#30 | interdiff_26-30.txt | 847 bytes | Spokje |
Comments
Comment #2
SpokjeMakes sense to me.
Looking at #3168514: Remove unnecessary polyfills from composer.lock we need to add
symfony/polyfill-php80
to thereplace
-section of the root composer.json to truly get rid of it.Comment #3
SpokjeComment #4
SpokjeComment #5
longwaveFor completeness should we also add
symfony/polyfill-php74
here?Comment #6
SpokjeThought about this, and double-checked again:
"Weirdly"
symfony/polyfill-php74
isn't required by any of our dependencies currently (72, 73 and 80 are).So technically, it's not needed _now_.
Having stressed that last word: Why not be complete, it doesn't hurt now and will prevent
symfony/polyfill-php74
hopping on board later on.Comment #7
longwavePHP 7.4 only added three really obscure functions that I guess nobody is using: https://github.com/symfony/polyfill-php74/blob/main/bootstrap.php
Comment #8
longwave#6 looks great to me, RTBC assuming bot agrees.
Comment #9
quietone CreditAttribution: quietone at PreviousNext commentedNeeds a reroll
Comment #10
SpokjeComment #11
SpokjeRetitling and updating IS
Comment #12
SpokjeComment #13
SpokjeI'll get there in the end...
Comment #14
SpokjeComment #15
SpokjeRerolled
Comment #16
SpokjeComment #18
SpokjeComment #19
SpokjeNote to self: More caffeine intake before posting the first patch of the day...
Comment #20
Spokje...and the second interdiff of the day...
Comment #21
SpokjeComment #22
SpokjeBesides a (rare, but previously seen-by-me-before) random test failure in
Drupal\Tests\book\Functional\BookTest::testGetTableOfContents
that wasn't there in the retest, this seems fine now.Comment #23
longwaveThanks @Spokje.
symfony/polyfill-php80
is removed andsymfony/polyfill-php74
is also blocked from installing just in case.Comment #24
catchNeeds another re-roll.
Comment #25
SpokjeSeemingly TestBot doesn't alert/kicks-back-to-NW issues that fail auto-2-daily-retesting?
Comment #26
SpokjeComment #27
SpokjeComment #28
Eric_A CreditAttribution: Eric_A at RIVM, Dutch Open Projects commentedIf we block unneeded php polyfills from installing, it seems logical to replace symfony/polyfill-php81 as well.
Comment #29
longwave@Eric_A great point! NW to skip
symfony/polyfill-php81
as well.Comment #30
Spokjesymfony/polyfill-php81
is basically the same story assymfony/polyfill-php74
: currently not required by any of our dependencies, but since we're being thorough, let's make sure it doesn't sneak in later.Comment #31
Eric_A CreditAttribution: Eric_A at RIVM, Dutch Open Projects commented(I suddenly realize that we've been replacing PHP polyfills in this project for some time but are not in drupal/recommended-project. Seems like an inconsistency... Anyway, out of scope here.)
Comment #32
Spokjedrupal/core-recommended
is build every core release from thea.b.x-dev
branches, so we're (should be) good.Comment #33
Eric_A CreditAttribution: Eric_A at RIVM, Dutch Open Projects commented(Projects drupal/legacy-project and drupal/recommended-project appear to be maintained manually.
In any case it's not something to worry about here. The perceived inconsistency in replaced packages is a pre-existing thing and can be addressed in its own issue if it is to be addressed.)
Comment #34
longwave#30 looks OK to me.
Comment #35
catchCommitted/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!
Comment #37
phenaproximaI'm tagging this for a release note, even though I sort of doubt this change is disruptive enough to warrant one. These polyfills, by their nature, are not things you should notice the presence or absence of. Nonetheless, erring on the side of caution here.
Comment #38
longwaveI don't think this needs one. We are only preventing polyfills from installing where the functionality they add is already provided by the minimum version of PHP that we support. I'd rather not try and explain this in the release notes as I can't see how it would ever affect anyone.
Comment #39
catchYep agreed, won't affect anyone whether site owners or contrib. Moving back to fixed an untagging.