Skip to content

Commit

Permalink
Merge pull request #231 from igumnovaleksey/masterminds-html5-library…
Browse files Browse the repository at this point in the history
…-static-analysis-issue

Fix masterminds-html5 lib php8-1 notice return type use phpstan
  • Loading branch information
goetas committed Mar 26, 2024
2 parents b80cdb3 + 987d0c0 commit c6979d5
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 @@ -183,6 +183,7 @@ public function getColumnOffset()
*
* @return string The current character.
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->data[$this->char];
Expand All @@ -192,6 +193,7 @@ public function current()
* Advance the pointer.
* This is part of the Iterator interface.
*/
#[\ReturnTypeWillChange]
public function next()
{
++$this->char;
Expand All @@ -200,6 +202,7 @@ public function next()
/**
* Rewind to the start of the string.
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->char = 0;
Expand All @@ -210,6 +213,7 @@ public function rewind()
*
* @return bool Whether the current pointer location is valid.
*/
#[\ReturnTypeWillChange]
public function valid()
{
return $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 c6979d5

Please sign in to comment.