[DI][RFC] Allow to check the class of the tagged collection's item #32815
Labels
DependencyInjection
RFC
RFC = Request For Comments (proposals about features that you want to be discussed)
Since #30257 we can inject complex tagged collections easily.
The only thing left before PHP gets generics is compile-time checking of the collection item type.
The syntax I propose:
Note that having the
foo
tag does not imply being an instance ofFooInterface
.The text was updated successfully, but these errors were encountered: