Problem/Motivation
Symfony already provide a symfony/polyfill-php86 package with helpful new functionalities (clamp() and SortDirection enum ATM)
Steps to reproduce
https://wiki.php.net/todo/php86
Proposed resolution
add symfony/polyfill-php86 to core's compsoer
Remaining tasks
patch, CR and commit
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3590237
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:
- 3590237-allow-use-php-11
changes, plain diff MR !15784
- 3590237-allow-use-php
changes, plain diff MR !15763
Comments
Comment #3
andypostUpdated previous CR https://www.drupal.org/node/3464803
Comment #4
claudiu.cristeaComment #5
dwwIs it worth changing anything in core to use at least one of the new functions as part of this issue? So we see that tests still pass, and so we see what kinds of improvements the new functions would unlock? Otherwise, seems this is adding an unused dependency, and the release managers tend not to like doing that. 😅
Comment #6
mstrelan commentedWe've had some of these polyfills go in on their own in the past, and they have proven useful particular for back ports, e.g. an MR targeting 11.x could use PHP 8.3 functions and backport easily to 10.x. It also makes it easier for contrib to use new language features. IMHO we should get this in without finding usages.
Comment #7
dwwMakes sense to me. I’m all for it, was only trying to channel my inner release manager. 😂 change is simple enough and looks good. Bot is happy (as expected). Let’s see what a committer thinks.
Comment #8
alexpottComment #9
alexpottCommitted and pushed 0d464ba79b0 to main. Thanks!
Comment #13
andypostcreated 11.x MR
Comment #14
alexpottComment #15
alexpottCommitted c78fd35 and pushed to 11.x. Thanks!