From 2b97943ff63e6208c68fefd6b2bd1a9c4e6ba62b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Tue, 12 Aug 2025 16:06:08 +0400 Subject: [PATCH] Update PHPDoc annotations for `Twig::render` --- src/Twig.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 {