Skip to content

Commit 8049429

Browse files
authored
Deprecated: Return type php 8
Deprecated: Return type of PHPHtmlParser\Dom\Node\Collection::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/wp-content/plugins/sage/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/Node/Collection.php on line 133
1 parent 4e01a43 commit 8049429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPHtmlParser/Dom/Node/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function offsetUnset($offset): void
130130
*
131131
* @return mixed
132132
*/
133-
public function offsetGet($offset)
133+
public function offsetGet(mixed $offset): mixed
134134
{
135135
return $this->collection[$offset] ?? null;
136136
}

0 commit comments

Comments
 (0)