Skip to content

Commit 3768381

Browse files
authored
Merge pull request #709 from ankurk91/php-8.1-compat
[3.0] fix: php 8.1 support
2 parents b78b14d + 5db8a1e commit 3768381

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
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): mixed
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
}

0 commit comments

Comments
 (0)