Skip to content

Commit

Permalink
Merge pull request #28523 from mintbridge/patch-1
Browse files Browse the repository at this point in the history
[5.8] Allow for objects to be passed to json and jsonp in the docblock
  • Loading branch information
taylorotwell authored May 14, 2019
2 parents 1f32131 + 91be0dc commit fab75c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Contracts/Routing/ResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function view($view, $data = [], $status = 200, array $headers = []);
/**
* Create a new JSON response instance.
*
* @param string|array $data
* @param string|array|object $data
* @param int $status
* @param array $headers
* @param int $options
Expand All @@ -49,7 +49,7 @@ public function json($data = [], $status = 200, array $headers = [], $options =
* Create a new JSONP response instance.
*
* @param string $callback
* @param string|array $data
* @param string|array|object $data
* @param int $status
* @param array $headers
* @param int $options
Expand Down

0 comments on commit fab75c7

Please sign in to comment.