Skip to content

Issue with php 8.1 #427

@NoralK

Description

@NoralK

php 8.1.8
WordPress v6.0.1 - default site
Theme Check Version 20211203

Getting this error when clicking on the Theme Check link and checking any of WordPress's themes:

null to parameter #1 ($string) of type string is deprecated in C:\wamp.net\sites\wordpress-6.0.1\wp-includes\formatting.php on line 2772

Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in C:\wamp.net\sites\wordpress-6.0.1\wp-includes\formatting.php on line 2772

When testing against php 7.4 and 8.0 there are no errors.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions