Skip to content

Commit 2970e54

Browse files
authored
Merge pull request #742 from backerclub/bugfix/explode-warning
Fix warning from passing null to explode for includeParts
2 parents e7abb43 + 353c534 commit 2970e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/QueryBuilderRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ public function includes(): Collection
3838

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

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

4545
return collect($includeParts)->filter();

0 commit comments

Comments
 (0)