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.
Problem/Motivation
1x: Method "Symfony\Component\DependencyInjection\ContainerBuilder::register()" will return "Definition" as of its next major version. Doing the same in child class "Drupal\Core\DependencyInjection\ContainerBuilder" will be required when upgrading.
Steps to reproduce
Proposed resolution
Add "Definition" hype hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3231668-2.patch | 642 bytes | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
catchLots of references to ContainerBuilder in contrib, but they all look to be instantiating or type hinting, not subclassing.
http://grep.xnddx.ru/search?text=ContainerBuilder&filename=
Comment #4
larowlanAgree, no results for extends ContainerBuilder
Committed 5f608fa and pushed to 9.3.x. Thanks!