Skip to content

Commit

Permalink
fix: prevent passing null to explode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad-Alavi committed Jun 4, 2023
1 parent c974402 commit d4cba14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Traits/ResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function transform(

protected function parseRequestedIncludes(): array
{
return explode(',', Request::get('include'));
return explode(',', Request::get('include') ?? '');
}

private function filterResponse(array $responseArray, array $filters): array
Expand Down

0 comments on commit d4cba14

Please sign in to comment.