Skip to content

PHP Deprecated: Sabberworm\CSS\CSSList\Document::render(): Implicitly marking parameter $oOutputFormat as nullable #1347

@costasovo

Description

@costasovo

I'm getting a PHP Warning on PHP 8.4.

PHP Deprecated: Sabberworm\CSS\CSSList\Document::render(): Implicitly marking parameter $oOutputFormat as nullable is deprecated, the explicit nullable

[22-Jul-2025 15:57:39 UTC] PHP Deprecated:  Sabberworm\CSS\CSSList\Document::render(): Implicitly marking parameter $oOutputFormat as nullable is deprecated, the explicit nullable type must be used instead in /public_html/wp-content/plugins/woocommerce/vendor/sabberworm/php-css-parser/src/CSSList/Document.php on line 158 

I see the code is already updated in the main branch. We are currently using v8.9.0 installed as a dependency of Emogrifier. I see that the fix is not present in v8.x branch. Are there any plans to get these fixes into a v8 release?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleasePRs for creating a new release

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions