Skip to content

Commit 617eb5a

Browse files
committed
PHP 8.1 issues during inheritance of ArrayAccess
1 parent 9400766 commit 617eb5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/QueryBuilder.php

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

156+
#[\ReturnTypeWillChange]
156157
public function offsetExists($offset)
157158
{
158159
return isset($this->subject[$offset]);
159160
}
160161

162+
#[\ReturnTypeWillChange]
161163
public function offsetGet($offset)
162164
{
163165
return $this->subject[$offset];
164166
}
165167

168+
#[\ReturnTypeWillChange]
166169
public function offsetSet($offset, $value)
167170
{
168171
$this->subject[$offset] = $value;
169172
}
170173

174+
#[\ReturnTypeWillChange]
171175
public function offsetUnset($offset)
172176
{
173177
unset($this->subject[$offset]);

0 commit comments

Comments
 (0)