Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Twig.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,17 @@ 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<string, mixed> $data Associative array of template variables
*
* @throws LoaderError When the template cannot be found
* @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
{
Expand Down