summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <[email protected]>2022-12-11 21:53:48 +0300
committerfox <[email protected]>2022-12-11 21:53:48 +0300
commite5483f94787f0a53a7d864d1375b0765d6cb7131 (patch)
treeb7593b37f2debaec51aa713ef18ccb044118c68e
parent1e0033a694ce576deba7c59c1da56c76e9e42109 (diff)
parent59807bae181ee4bd9d6af9e269f116b5c5c65f23 (diff)
Merge pull request 'Add more 'ReturnTypeWillChange' in 'StringInputStream'.' (#1) from wn/html5-php:bugfix/StringInputStream-ReturnTypeWillChange into master
Reviewed-on: https://dev.tt-rss.org/main/html5-php/pulls/1
-rw-r--r--src/HTML5/Parser/StringInputStream.php8
1 files changed, 5 insertions, 3 deletions
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;