diff --git a/src/ContainerInterface.php b/src/ContainerInterface.php index b2cad40..990286f 100644 --- a/src/ContainerInterface.php +++ b/src/ContainerInterface.php @@ -17,6 +17,9 @@ interface ContainerInterface * @throws NotFoundExceptionInterface No entry was found for **this** identifier. * @throws ContainerExceptionInterface Error while retrieving the entry. * + * @psalm-template T + * @psalm-param class-string|string $serviceName + * @psalm-return ($serviceName is class-string ? T : mixed) * @return mixed Entry. */ public function get(string $id);