MyIntervals / PHP-CSS-Parser

A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS

Home Page:http://www.sabberworm.com/blog/2010/6/10/php-css-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lacks PHP v8.1 compatibility

dleffler opened this issue · comments

PHP v8.1 (currently a release candidate) deprecates several parameter types and throws warnings such as Deprecated: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in PHP-CSS-Parser\lib\Sabberworm\CSS\Parsing\ParserState.php on line 285

@dleffler We currently unfortunately cannot run the unit tests with PHP 8.1 yet. Would you be willing to list all problems you encounter with PHP 8.1? Then I can take a look. Thanks!

Hi @oliverklee !
Since this PR is merged can we expect new release? (to be used with pelago/emogrifier)

Yes, I’ll do a release shortly. I wasn’t sure whether @oliverklee was through with all the planned refactorings which I wanted to wait for before releasing but it seems like now is a good time.

No, I'm not through with my planned refactorings/cleanup/fixes. None of those should block a release, though. So please go ahead, @sabberworm! Thanks!

Hi @sabberworm! Do you have updates by any chance when new version will be released ?

@xmav version 8.4.0 is now out.