diff --git a/src/Twig.php b/src/Twig.php index 2d94464..e1c32b1 100644 --- a/src/Twig.php +++ b/src/Twig.php @@ -195,7 +195,9 @@ public function fetchFromString(string $string = '', array $data = []): string /** * Output rendered template * - * @param ResponseInterface $response + * @template TResponse of ResponseInterface + * + * @param TResponse $response * @param string $template Template pathname relative to templates directory * @param array $data Associative array of template variables * @@ -203,7 +205,7 @@ public function fetchFromString(string $string = '', array $data = []): string * @throws SyntaxError When an error occurred during compilation * @throws RuntimeError When an error occurred during rendering * - * @return ResponseInterface + * @return TResponse */ public function render(ResponseInterface $response, string $template, array $data = []): ResponseInterface {