readability: import fixed html5-php

This commit is contained in:
Andrew Dolgov
2022-07-31 09:42:00 +03:00
parent a8b0bce008
commit ff7e99b986
5 changed files with 13 additions and 10 deletions
@@ -192,6 +192,7 @@ class StringInputStream implements InputStream
* Advance the pointer.
* This is part of the Iterator interface.
*/
#[\ReturnTypeWillChange]
public function next()
{
++$this->char;
@@ -200,6 +201,7 @@ class StringInputStream implements InputStream
/**
* Rewind to the start of the string.
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->char = 0;
@@ -210,6 +212,7 @@ class StringInputStream implements InputStream
*
* @return bool Whether the current pointer location is valid.
*/
#[\ReturnTypeWillChange]
public function valid()
{
return $this->char < $this->EOF;