Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 12, 2018
1 parent e6ebc8d commit 621d91d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Foundation/Testing/TestResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,9 @@ public function assertJsonMissingValidationErrors($keys)
*/
public function decodeResponseJson($key = null)
{
$decodedResponse = $this->jsonDecodeKeepEmptyObject($this->getContent());
$decodedResponse = $this->decodeJsonWhilePreservingEmptyObjects(
$this->getContent()
);

if (is_null($decodedResponse) || $decodedResponse === false) {
if ($this->exception) {
Expand All @@ -705,7 +707,7 @@ public function decodeResponseJson($key = null)
* @param string $json
* @return mixed
*/
public function jsonDecodeKeepEmptyObject(string $json)
public function decodeJsonWhilePreservingEmptyObjects(string $json)
{
$payload = json_decode($json);

Expand Down

0 comments on commit 621d91d

Please sign in to comment.