summaryrefslogtreecommitdiff
path: root/src/HTML5/Parser/StringInputStream.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTML5/Parser/StringInputStream.php')
-rw-r--r--src/HTML5/Parser/StringInputStream.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HTML5/Parser/StringInputStream.php b/src/HTML5/Parser/StringInputStream.php
index 0c213fe..bed9d6e 100644
--- a/src/HTML5/Parser/StringInputStream.php
+++ b/src/HTML5/Parser/StringInputStream.php
@@ -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;