Skip to content

Commit 4e64690

Browse files
committed
Fixed issue where key() must return mixed in PHP8.1. It is now marked as #ReturnTypeWillChange.
1 parent 1ea642f commit 4e64690

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cssdoc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ public function current() {
303303
*
304304
* @return mixed The current pointer position
305305
*/
306+
#[\ReturnTypeWillChange]
306307
public function key() : mixed {
307308
return $this->pointer;
308309
}

0 commit comments

Comments
 (0)