diff --git a/src/Infrastructure/ServiceRegister.php b/src/Infrastructure/ServiceRegister.php index 09a5879..2cf0c5d 100644 --- a/src/Infrastructure/ServiceRegister.php +++ b/src/Infrastructure/ServiceRegister.php @@ -61,11 +61,13 @@ public static function getInstance(): ServiceRegister /** * Gets service for specified type. * - * @template T * @param class-string $type + * + * @template T of object + * * @return T */ - public static function getService(string $type) + public static function getService(string $type): object { return self::getInstance()->get($type); }