Skip to content

Commit

Permalink
Merge pull request #7 from rotexdegba/patch-1
Browse files Browse the repository at this point in the history
render method returning an int instead of an instance of Psr\Http\Mes…
  • Loading branch information
geggleto committed Nov 10, 2015
2 parents 1a7ff01 + e182fd6 commit 41d69f8
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 41d69f8

Please sign in to comment.