Skip to content

Commit 6466956

Browse files
authored
Merge pull request #702 from Medalink/feature/php81
PHP 8.1 Support
2 parents 9400766 + 2d7a652 commit 6466956

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/QueryBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,22 +153,22 @@ public function __set($name, $value)
153153
$this->subject->{$name} = $value;
154154
}
155155

156-
public function offsetExists($offset)
156+
public function offsetExists($offset): bool
157157
{
158158
return isset($this->subject[$offset]);
159159
}
160160

161-
public function offsetGet($offset)
161+
public function offsetGet($offset): bool
162162
{
163163
return $this->subject[$offset];
164164
}
165165

166-
public function offsetSet($offset, $value)
166+
public function offsetSet($offset, $value): void
167167
{
168168
$this->subject[$offset] = $value;
169169
}
170170

171-
public function offsetUnset($offset)
171+
public function offsetUnset($offset): void
172172
{
173173
unset($this->subject[$offset]);
174174
}

src/QueryBuilderRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function appends(): Collection
5151

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

54-
if (! is_array($appendParts)) {
54+
if (! is_array($appendParts) && ! is_null($appendParts)) {
5555
$appendParts = explode(static::getAppendsArrayValueDelimiter(), $appendParts);
5656
}
5757

0 commit comments

Comments
 (0)