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
Method "Symfony\Component\DependencyInjection\ContainerBuilder::setAlias()" will return "Alias" 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 the "Alias" type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3231669-2.patch | 973 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
larowlanCommitted 6e7cd2e and pushed to 9.3.x. Thanks!