Skip to content

Commit 3ec072f

Browse files
committed
Fixed issue where key() must return mixed in PHP8.1. It is now marked as #ReturnTypeWillChange.
Updated composer dependencies.
1 parent 12e30b4 commit 3ec072f

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require": {
1717
"php": ">=7.4",
1818
"hexydec/tokenise": "1.0.1",
19-
"hexydec/cssdoc": "1.0.3",
19+
"hexydec/cssdoc": "1.0.4",
2020
"hexydec/jslite": "0.6.1"
2121
},
2222
"autoload": {

composer.lock

+18-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/htmldoc.php

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public function current() {
151151
*
152152
* @return mixed The current pointer position
153153
*/
154+
#[\ReturnTypeWillChange]
154155
public function key() {
155156
return $this->pointer;
156157
}

0 commit comments

Comments
 (0)