Skip to content

Commit 394edf4

Browse files
committed
support php 8.1
1 parent 00f7400 commit 394edf4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/DotArray.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ private function prepareKey(string &$key)
277277
* @param int|string $key
278278
* @return bool
279279
*/
280+
#[\ReturnTypeWillChange]
280281
public function offsetExists($key)
281282
{
282283
return $this->has($key);
@@ -298,6 +299,7 @@ public function offsetGet($key)
298299
*
299300
* @param mixed $value
300301
*/
302+
#[\ReturnTypeWillChange]
301303
public function offsetSet($key, $value)
302304
{
303305
if (is_null($key)) {
@@ -310,6 +312,7 @@ public function offsetSet($key, $value)
310312
/**
311313
* Delete the given key
312314
*/
315+
#[\ReturnTypeWillChange]
313316
public function offsetUnset($key)
314317
{
315318
$this->delete($key);
@@ -338,6 +341,7 @@ public function count($key = null): int
338341
*
339342
* @return ArrayIterator
340343
*/
344+
#[\ReturnTypeWillChange]
341345
public function getIterator()
342346
{
343347
return new ArrayIterator($this->_ITEMS);

0 commit comments

Comments
 (0)