Skip to content

Commit c6979d5

Browse files
authored
Merge pull request #231 from igumnovaleksey/masterminds-html5-library-static-analysis-issue
Fix masterminds-html5 lib php8-1 notice return type use phpstan
2 parents b80cdb3 + 987d0c0 commit c6979d5

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
@@ -183,6 +183,7 @@ public function getColumnOffset()
183183
*
184184
* @return string The current character.
185185
*/
186+
#[\ReturnTypeWillChange]
186187
public function current()
187188
{
188189
return $this->data[$this->char];
@@ -192,6 +193,7 @@ public function current()
192193
* Advance the pointer.
193194
* This is part of the Iterator interface.
194195
*/
196+
#[\ReturnTypeWillChange]
195197
public function next()
196198
{
197199
++$this->char;
@@ -200,6 +202,7 @@ public function next()
200202
/**
201203
* Rewind to the start of the string.
202204
*/
205+
#[\ReturnTypeWillChange]
203206
public function rewind()
204207
{
205208
$this->char = 0;
@@ -210,6 +213,7 @@ public function rewind()
210213
*
211214
* @return bool Whether the current pointer location is valid.
212215
*/
216+
#[\ReturnTypeWillChange]
213217
public function valid()
214218
{
215219
return $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)