php-html-parser icon indicating copy to clipboard operation
php-html-parser copied to clipboard

The function offsetGet raises a warning for PHP 8

Open meljturner opened this issue 11 months ago • 1 comments

There is an incompatibility with PHP 8.1.

Temporary fix is to add attribute:

#[\ReturnTypeWillChange]  at line 140 in Dom/Collection.php

meljturner avatar Mar 05 '24 14:03 meljturner

There are many issues with this library which isn't maintained anymore. The only good news is that with PHP 8.4 we will get a decent native DOM parser in a couple of months. https://wiki.php.net/rfc/domdocument_html5_parser

rgex avatar Mar 17 '24 12:03 rgex