From 987d0c0641e38d0be9ac39cda540ceb87186c120 Mon Sep 17 00:00:00 2001 From: developer Date: Fri, 7 Apr 2023 12:21:06 +0000 Subject: [PATCH] Fix masterminds-html5 lib php8-1 notice return type use phpstan --- src/HTML5/Parser/StringInputStream.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HTML5/Parser/StringInputStream.php b/src/HTML5/Parser/StringInputStream.php index 4cac3c2..e1295a8 100644 --- a/src/HTML5/Parser/StringInputStream.php +++ b/src/HTML5/Parser/StringInputStream.php @@ -177,6 +177,7 @@ public function getColumnOffset() * * @return string The current character. */ + #[\ReturnTypeWillChange] public function current() { return $this->data[$this->char]; @@ -186,6 +187,7 @@ public function current() * Advance the pointer. * This is part of the Iterator interface. */ + #[\ReturnTypeWillChange] public function next() { $this->char ++; @@ -194,6 +196,7 @@ public function next() /** * Rewind to the start of the string. */ + #[\ReturnTypeWillChange] public function rewind() { $this->char = 0; @@ -204,6 +207,7 @@ public function rewind() * * @return bool Is the current pointer location valid. */ + #[\ReturnTypeWillChange] public function valid() { if ($this->char < $this->EOF) { @@ -324,6 +328,7 @@ public function peek() return false; } + #[\ReturnTypeWillChange] public function key() { return $this->char;