|string $serviceName * @return T|mixed * @psalm-template S as class-string|string * @psalm-param S $serviceName * @psalm-return (S is class-string ? T : mixed) * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @since 25.0.0 */ public static function get(string $serviceName) { /** @psalm-suppress UndefinedClass */ return \OC::$server->get($serviceName); } }