fix(SimpleContainer): Adjust return type for PHPStan

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2026-02-11 10:41:48 +01:00
parent e8d4d435ed
commit 5c47ce9b40
No known key found for this signature in database

View file

@ -37,10 +37,7 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
/**
* @template T
* @param class-string<T>|string $id
* @return T|mixed
* @psalm-template S as class-string<T>|string
* @psalm-param S $id
* @psalm-return (S is class-string<T> ? T : mixed)
* @return ($id is class-string<T> ? T : mixed)
*/
public function get(string $id): mixed {
return $this->query($id);