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 Apr 7, 2023
1 parent 7866e93 commit 9d24f9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/HTML5/Parser/StringInputStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function getColumnOffset()
*
* @return string The current character.
*/
public function current()
public function current(): mixed
{
return $this->data[$this->char];
}
Expand All @@ -186,15 +186,15 @@ public function current()
* Advance the pointer.
* This is part of the Iterator interface.
*/
public function next()
public function next(): void
{
$this->char ++;
}

/**
* Rewind to the start of the string.
*/
public function rewind()
public function rewind(): void
{
$this->char = 0;
}
Expand All @@ -204,7 +204,7 @@ public function rewind()
*
* @return bool Is the current pointer location valid.
*/
public function valid()
public function valid(): bool
{
if ($this->char < $this->EOF) {
return true;
Expand Down Expand Up @@ -324,7 +324,7 @@ public function peek()
return false;
}

public function key()
public function key(): int
{
return $this->char;
}
Expand Down

0 comments on commit 9d24f9c

Please sign in to comment.