From 1e0033a694ce576deba7c59c1da56c76e9e42109 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 31 Jul 2022 09:41:22 +0300 Subject: add annotations for PHP8.1 --- src/HTML5/Parser/StringInputStream.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/HTML5/Parser/StringInputStream.php') 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; -- cgit v1.2.3