You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just adding an if with (new ObjectType(ContainerInterface::class))->isSuperTypeOf($argType)->yes() should be fine. There are already some exceptions there:
Symfony
ContainerBagInterface
implementsPsr\Container\ContainerInterface
but actually it returns a container parameter, not a service.However
ContainerInterfaceUnknownServiceRule
checks for service existence, not parameter. For example this coderesults in the following error
I suggest to ignore subtypes of
ContainerBagInterface
in theContainerInterfaceUnknownServiceRule
. Is this correct?The text was updated successfully, but these errors were encountered: