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 ea97890 commit efbe665Copy full SHA for efbe665
ContainerInterface.php
@@ -33,11 +33,13 @@ interface ContainerInterface extends PsrContainerInterface
33
public function set(string $id, ?object $service): void;
34
35
/**
36
+ * @template C of object
37
* @template B of self::*_REFERENCE
38
*
- * @param B $invalidBehavior
39
+ * @param string|class-string<C> $id
40
+ * @param B $invalidBehavior
41
- * @psalm-return (B is self::EXCEPTION_ON_INVALID_REFERENCE|self::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE ? object : object|null)
42
+ * @return ($id is class-string<C> ? (B is 0|1 ? C|object : C|object|null) : (B is 0|1 ? object : object|null))
43
44
* @throws ServiceCircularReferenceException When a circular reference is detected
45
* @throws ServiceNotFoundException When the service is not defined
0 commit comments