Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Nov 21, 2024
1 parent 77e11a9 commit 344e531
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Testing/Concerns/MakesHttpRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function handle(Request $request)
* @param array|null $data
* @return $this
*/
protected function shouldReturnJson(array $data = null)
protected function shouldReturnJson(?array $data = null)
{
return $this->receiveJson($data);
}
Expand Down Expand Up @@ -239,7 +239,7 @@ public function seeJsonEquals(array $data)
* @param bool $negate
* @return $this
*/
public function seeJson(array $data = null, $negate = false)
public function seeJson(?array $data = null, $negate = false)
{
if (is_null($data)) {
$decodedResponse = json_decode($this->response->getContent(), true);
Expand All @@ -262,7 +262,7 @@ public function seeJson(array $data = null, $negate = false)
* @param array|null $data
* @return $this
*/
public function dontSeeJson(array $data = null)
public function dontSeeJson(?array $data = null)
{
return $this->seeJson($data, true);
}
Expand All @@ -274,7 +274,7 @@ public function dontSeeJson(array $data = null)
* @param array|null $responseData
* @return $this
*/
public function seeJsonStructure(array $structure = null, $responseData = null)
public function seeJsonStructure(?array $structure = null, $responseData = null)
{
$this->response->assertJsonStructure($structure, $responseData);

Expand Down

0 comments on commit 344e531

Please sign in to comment.