Skip to content

Commit

Permalink
Merge pull request #742 from backerclub/bugfix/explode-warning
Browse files Browse the repository at this point in the history
Fix warning from passing null to explode for includeParts
  • Loading branch information
freekmurze authored Mar 18, 2022
2 parents e7abb43 + 353c534 commit 2970e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/QueryBuilderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public function includes(): Collection

$includeParts = $this->getRequestData($includeParameterName);

if (! is_array($includeParts)) {
$includeParts = explode(static::getIncludesArrayValueDelimiter(), $this->getRequestData($includeParameterName));
if (is_string($includeParts)) {
$includeParts = explode(static::getIncludesArrayValueDelimiter(), $includeParts);
}

return collect($includeParts)->filter();
Expand Down

0 comments on commit 2970e54

Please sign in to comment.