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
/**
* Gets a service.
*
* @param string $id The service identifier
* @param int $invalidBehavior The behavior when the service does not exist
*
* @return object|null The associated service
*
* @throws ServiceCircularReferenceException When a circular reference is detected
* @throws ServiceNotFoundException When the service is not defined
*
* @see Reference
*/
public function get($id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
When using self::EXCEPTION_ON_INVALID_REFERENCE, the return type should be restricted to object.
The text was updated successfully, but these errors were encountered:
The containerInterface has the following doc
When using
self::EXCEPTION_ON_INVALID_REFERENCE
, the return type should be restricted toobject
.The text was updated successfully, but these errors were encountered: