Skip to content

Commit 987d0c0

Browse files
author
developer
committed
Fix masterminds-html5 lib php8-1 notice return type use phpstan
1 parent 7866e93 commit 987d0c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/HTML5/Parser/StringInputStream.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ public function getColumnOffset()
177177
*
178178
* @return string The current character.
179179
*/
180+
#[\ReturnTypeWillChange]
180181
public function current()
181182
{
182183
return $this->data[$this->char];
@@ -186,6 +187,7 @@ public function current()
186187
* Advance the pointer.
187188
* This is part of the Iterator interface.
188189
*/
190+
#[\ReturnTypeWillChange]
189191
public function next()
190192
{
191193
$this->char ++;
@@ -194,6 +196,7 @@ public function next()
194196
/**
195197
* Rewind to the start of the string.
196198
*/
199+
#[\ReturnTypeWillChange]
197200
public function rewind()
198201
{
199202
$this->char = 0;
@@ -204,6 +207,7 @@ public function rewind()
204207
*
205208
* @return bool Is the current pointer location valid.
206209
*/
210+
#[\ReturnTypeWillChange]
207211
public function valid()
208212
{
209213
if ($this->char < $this->EOF) {
@@ -324,6 +328,7 @@ public function peek()
324328
return false;
325329
}
326330

331+
#[\ReturnTypeWillChange]
327332
public function key()
328333
{
329334
return $this->char;

0 commit comments

Comments
 (0)