summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2022-07-31 09:41:22 +0300
committerAndrew Dolgov <[email protected]>2022-07-31 09:41:22 +0300
commit1e0033a694ce576deba7c59c1da56c76e9e42109 (patch)
treeaa01e310f4e5ab0d1790c72741489c03afc32b84
parentf640ac1bdddff06ea333a920c95bbad8872429ab (diff)
add annotations for PHP8.1
-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;