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
As the title says, when the invalidBehavior argument is supplied to ContainerInterface::get, the returned object is not typehinted for the IDE as what it actually is.
$logger = $this->container->get('logger'); // this is a Logger object for the IDE$logger = $this->container->get('logger', ContainerInterface::NULL_ON_INVALID_REFERENCE); // this is just an object for the IDE
The text was updated successfully, but these errors were encountered:
Hi,
As the title says, when the
invalidBehavior
argument is supplied toContainerInterface::get
, the returned object is not typehinted for the IDE as what it actually is.The text was updated successfully, but these errors were encountered: