Skip to content

Commit 4510ac8

Browse files
authored
Merge pull request #809 from drecken/v3
PHP 8.1 Support
2 parents 47b0678 + f51c5bd commit 4510ac8

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,7 +38,7 @@ public function includes(): Collection
3838

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

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

@@ -53,7 +53,7 @@ public function appends(): Collection
5353

5454
$appendParts = $this->getRequestData($appendParameterName);
5555

56-
if (! is_array($appendParts)) {
56+
if (! is_array($appendParts) && ! is_null($appendParts)) {
5757
$appendParts = explode(static::getAppendsArrayValueDelimiter(), $appendParts);
5858
}
5959

0 commit comments

Comments
 (0)