From 80494297734bf3ec8498daee7fca142cf66ab357 Mon Sep 17 00:00:00 2001 From: Alexandre Beaujour Date: Sun, 26 May 2024 19:15:26 -0400 Subject: [PATCH] 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 --- src/PHPHtmlParser/Dom/Node/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PHPHtmlParser/Dom/Node/Collection.php b/src/PHPHtmlParser/Dom/Node/Collection.php index ff447259..dcae5e9e 100644 --- a/src/PHPHtmlParser/Dom/Node/Collection.php +++ b/src/PHPHtmlParser/Dom/Node/Collection.php @@ -130,7 +130,7 @@ public function offsetUnset($offset): void * * @return mixed */ - public function offsetGet($offset) + public function offsetGet(mixed $offset): mixed { return $this->collection[$offset] ?? null; }