Problem/Motivation
Method "Symfony\Component\DependencyInjection\ContainerBuilder::setDefinition()" 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" type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3231672-2.patch | 751 bytes | daffie |
Comments
Comment #2
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 da0ae6a and pushed to 9.3.x. Thanks!