Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PHP 8.1 Support
Backport for #742 & #702
  • Loading branch information
drecken authored Aug 29, 2022
commit f51c5bd587947962f1c85cdc0a011304c9e5753c
4 changes: 2 additions & 2 deletions src/QueryBuilderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function includes(): Collection

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

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

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

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

if (! is_array($appendParts)) {
if (! is_array($appendParts) && ! is_null($appendParts)) {
$appendParts = explode(static::getAppendsArrayValueDelimiter(), $appendParts);
}

Expand Down