We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a5bc2f commit dd1db43Copy full SHA for dd1db43
ContainerInterface.php
@@ -36,6 +36,12 @@ interface ContainerInterface extends PsrContainerInterface
36
public function set(string $id, ?object $service);
37
38
/**
39
+ * @template B of self::*_REFERENCE
40
+ *
41
+ * @param B $invalidBehavior
42
43
+ * @psalm-return (B is self::EXCEPTION_ON_INVALID_REFERENCE|self::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE ? object : object|null)
44
45
* @throws ServiceCircularReferenceException When a circular reference is detected
46
* @throws ServiceNotFoundException When the service is not defined
47
*
0 commit comments