From 59807bae181ee4bd9d6af9e269f116b5c5c65f23 Mon Sep 17 00:00:00 2001 From: wn_ Date: Sun, 11 Dec 2022 18:18:50 +0000 Subject: Add more 'ReturnTypeWillChange' in 'StringInputStream'. https://github.com/phpstan/phpstan/issues/7415 --- src/HTML5/Parser/StringInputStream.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/HTML5/Parser/StringInputStream.php') diff --git a/src/HTML5/Parser/StringInputStream.php b/src/HTML5/Parser/StringInputStream.php index bed9d6e..75b0886 100644 --- a/src/HTML5/Parser/StringInputStream.php +++ b/src/HTML5/Parser/StringInputStream.php @@ -183,6 +183,7 @@ class StringInputStream implements InputStream * * @return string The current character. */ + #[\ReturnTypeWillChange] public function current() { return $this->data[$this->char]; @@ -192,7 +193,7 @@ class StringInputStream implements InputStream * Advance the pointer. * This is part of the Iterator interface. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function next() { ++$this->char; @@ -201,7 +202,7 @@ class StringInputStream implements InputStream /** * Rewind to the start of the string. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function rewind() { $this->char = 0; @@ -212,7 +213,7 @@ class StringInputStream implements InputStream * * @return bool Whether the current pointer location is valid. */ - #[\ReturnTypeWillChange] + #[\ReturnTypeWillChange] public function valid() { return $this->char < $this->EOF; @@ -327,6 +328,7 @@ class StringInputStream implements InputStream return false; } + #[\ReturnTypeWillChange] public function key() { return $this->char; -- cgit v1.2.3