paquettg/php-html-parser

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 paquettg/php-html-parser/src/PHPHtmlParser/Dom/Node/Collection.php on line 133

Opened this issue · 1 comments

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 paquettg/php-html-parser/src/PHPHtmlParser/Dom/Node/Collection.php on line 133
PHP 8.2.19 (cli) (built: May 10 2024 22:33:56) (ZTS)
Copyright (c) The PHP Group
Zend Engine v4.2.19, Copyright (c) Zend Technologies
    with Zend OPcache v8.2.19, Copyright (c), by Zend Technologies
    with Xdebug v3.3.2, Copyright (c) 2002-2024, by Derick Rethans

You can hide it by adding this in your code:

error_reporting(E_ALL & ~E_DEPRECATED);

I'm using this in my project and it works well.