Skip to content

Commit 41d69f8

Browse files
committed
Merge pull request #7 from rotexdegba/patch-1
render method returning an int instead of an instance of Psr\Http\Mes…
2 parents 1a7ff01 + e182fd6 commit 41d69f8

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)