Skip to content

Commit

Permalink
updated params
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaaj committed Aug 22, 2022
1 parent 017e5af commit 3b57e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/ResponseFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ trait ResponseFormatter {
* @param int $code
* @return JsonResponse
*/
public function jsonResponse(array $data =[], string $message, int $code = 200)
public function jsonResponse(array $data =[], string $message ='', int $code = 200)
{
if ($message) {
$data['message'] = $message;
Expand Down

0 comments on commit 3b57e51

Please sign in to comment.