We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46121ee commit fbf9048Copy full SHA for fbf9048
tests/FailTest.php
@@ -109,7 +109,7 @@ public function testFailOutController()
109
'code' => ResponseCodeEnum::SYSTEM_ERROR,
110
'message' => ResponseCodeEnum::fromValue(ResponseCodeEnum::SYSTEM_ERROR)->description,
111
'data' => (object) [],
112
- 'error' => config('app.debug', false) ? $this->convertExceptionToArray($httpException) : [],
+ 'error' => config('app.debug', false) ? $this->convertExceptionToArray($httpException) : (object)[],
113
], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
114
115
$this->assertJsonStringEqualsJsonString($expectedJson, $response->getContent());
0 commit comments