Skip to content

Commit

Permalink
render method returning an int instead of an instance of Psr\Http\Mes…
Browse files Browse the repository at this point in the history
…sage\ResponseInterface
  • Loading branch information
rotexdegba committed Nov 10, 2015
1 parent 1a7ff01 commit e182fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PHPRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public function render(ResponseInterface $response, $template, array $data = [])
$render($this->templatePath . $template, $data);
$output = ob_get_clean();

return $response->getBody()->write($output);
$response->getBody()->write($output);

return $response;
}
}

0 comments on commit e182fd6

Please sign in to comment.