Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
0 answers
70 views

How to override the typehint for entityTypeManager with a more specific one?

I'm often frustrated by entityTypeManager because when I load entities, the typehint for the return value of the load methods is EntityInterface, but I want it to be a more specific interface (which I ...
Patrick Kenny's user avatar
3 votes
0 answers
75 views

Array type hints conflict between Drupal and Symfony

In an event subscriber, I have: /** * Registers the methods in this class that should be listeners. * * @return array * An array of event listener definitions. */ public static ...
Patrick Kenny's user avatar