Skip to content

Commit e182fd6

Browse files
committed
render method returning an int instead of an instance of Psr\Http\Message\ResponseInterface
1 parent 1a7ff01 commit e182fd6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/PHPRenderer.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ public function render(ResponseInterface $response, $template, array $data = [])
6767
$render($this->templatePath . $template, $data);
6868
$output = ob_get_clean();
6969

70-
return $response->getBody()->write($output);
70+
$response->getBody()->write($output);
71+
72+
return $response;
7173
}
7274
}

0 commit comments

Comments
 (0)