Skip to content

Commit 353c534

Browse files
authored
Fix warning from passing null to explode
...using is_string() conditional instead of ! is_array() && ! is_null().
1 parent 81fca60 commit 353c534

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QueryBuilderRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function includes(): Collection
3838

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

41-
if (! is_array($includeParts) && ! is_null($includeParts)) {
41+
if (is_string($includeParts)) {
4242
$includeParts = explode(static::getIncludesArrayValueDelimiter(), $includeParts);
4343
}
4444

0 commit comments

Comments
 (0)