Skip to content

Commit

Permalink
Merge pull request #702 from Medalink/feature/php81
Browse files Browse the repository at this point in the history
PHP 8.1 Support
  • Loading branch information
freekmurze committed Dec 26, 2021
2 parents 9400766 + 2d7a652 commit 6466956
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,22 +153,22 @@ public function __set($name, $value)
$this->subject->{$name} = $value;
}

public function offsetExists($offset)
public function offsetExists($offset): bool
{
return isset($this->subject[$offset]);
}

public function offsetGet($offset)
public function offsetGet($offset): bool
{
return $this->subject[$offset];
}

public function offsetSet($offset, $value)
public function offsetSet($offset, $value): void
{
$this->subject[$offset] = $value;
}

public function offsetUnset($offset)
public function offsetUnset($offset): void
{
unset($this->subject[$offset]);
}
Expand Down
2 changes: 1 addition & 1 deletion src/QueryBuilderRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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

0 comments on commit 6466956

Please sign in to comment.