Skip to content

Commit

Permalink
Fix masterminds-html5 lib php8-1 notice return type use phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
developer committed Aug 4, 2023
1 parent 7866e93 commit 987d0c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/HTML5/Parser/StringInputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public function getColumnOffset()
*
* @return string The current character.
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->data[$this->char];
Expand All @@ -186,6 +187,7 @@ public function current()
* Advance the pointer.
* This is part of the Iterator interface.
*/
#[\ReturnTypeWillChange]
public function next()
{
$this->char ++;
Expand All @@ -194,6 +196,7 @@ public function next()
/**
* Rewind to the start of the string.
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->char = 0;
Expand All @@ -204,6 +207,7 @@ public function rewind()
*
* @return bool Is the current pointer location valid.
*/
#[\ReturnTypeWillChange]
public function valid()
{
if ($this->char < $this->EOF) {
Expand Down Expand Up @@ -324,6 +328,7 @@ public function peek()
return false;
}

#[\ReturnTypeWillChange]
public function key()
{
return $this->char;
Expand Down

0 comments on commit 987d0c0

Please sign in to comment.