diff options
author | Andrew Dolgov <[email protected]> | 2022-07-31 09:41:22 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-07-31 09:41:22 +0300 |
commit | 1e0033a694ce576deba7c59c1da56c76e9e42109 (patch) | |
tree | aa01e310f4e5ab0d1790c72741489c03afc32b84 | |
parent | f640ac1bdddff06ea333a920c95bbad8872429ab (diff) |
add annotations for PHP8.1
-rw-r--r-- | src/HTML5/Parser/StringInputStream.php | 3 |
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; |