Skip to content

Commit b6eed8c

Browse files
Merge branch '9.x' into 10.x
2 parents c88d8cb + d505f9e commit b6eed8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Testing/Concerns/MakesHttpRequests.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function handle(Request $request)
195195
* @param array|null $data
196196
* @return $this
197197
*/
198-
protected function shouldReturnJson(array $data = null)
198+
protected function shouldReturnJson(?array $data = null)
199199
{
200200
return $this->receiveJson($data);
201201
}
@@ -239,7 +239,7 @@ public function seeJsonEquals(array $data)
239239
* @param bool $negate
240240
* @return $this
241241
*/
242-
public function seeJson(array $data = null, $negate = false)
242+
public function seeJson(?array $data = null, $negate = false)
243243
{
244244
if (is_null($data)) {
245245
$decodedResponse = json_decode($this->response->getContent(), true);
@@ -262,7 +262,7 @@ public function seeJson(array $data = null, $negate = false)
262262
* @param array|null $data
263263
* @return $this
264264
*/
265-
public function dontSeeJson(array $data = null)
265+
public function dontSeeJson(?array $data = null)
266266
{
267267
return $this->seeJson($data, true);
268268
}
@@ -274,7 +274,7 @@ public function dontSeeJson(array $data = null)
274274
* @param array|null $responseData
275275
* @return $this
276276
*/
277-
public function seeJsonStructure(array $structure = null, $responseData = null)
277+
public function seeJsonStructure(?array $structure = null, $responseData = null)
278278
{
279279
$this->response->assertJsonStructure($structure, $responseData);
280280

0 commit comments

Comments
 (0)