Skip to content

Commit 4ddda7c

Browse files
committed
Add #[\ReturnTypeWillChange] to Cursor
1 parent 3386256 commit 4ddda7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/file/Cursor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public function __construct($collection, $cursor)
4040
* This method is required by the interface [[\Iterator]].
4141
* @return mixed current row
4242
*/
43+
#[\ReturnTypeWillChange]
4344
public function current()
4445
{
4546
$value = parent::current();
@@ -146,4 +147,4 @@ public function __unset($name)
146147
$cursor = $this->getInnerIterator();
147148
unset($cursor->$name);
148149
}
149-
}
150+
}

0 commit comments

Comments
 (0)