Skip to content

Commit

Permalink
http response return type
Browse files Browse the repository at this point in the history
  • Loading branch information
devosc committed Apr 6, 2018
1 parent f15564e commit 8acbbe3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facade/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait Response
* @param array $headers
* @return \Mvc5\Response\JsonResponse
*/
static function json($data, int $status = 200, array $headers = [])
static function json($data, int $status = 200, array $headers = []) : Http\Response
{
return static::plugin('response\json', [$data, $status, $headers]);
}
Expand All @@ -33,7 +33,7 @@ static function json($data, int $status = 200, array $headers = [])
* @param array $config
* @return \Mvc5\Response\RedirectResponse
*/
static function redirect($url, int $status = 302, array $headers = [], array $config = [])
static function redirect($url, int $status = 302, array $headers = [], array $config = []) : Http\Response
{
return static::plugin('response\redirect', [$url, $status, $headers, $config]);
}
Expand Down

0 comments on commit 8acbbe3

Please sign in to comment.