WordPress / theme-check

Theme Check plugin
https://wordpress.org/plugins/theme-check/
341 stars 114 forks source link

Issue with php 8.1 #427

Open NoralK opened 2 years ago

NoralK commented 2 years ago

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

NoralK commented 2 years ago

It apprear to be a WP includes error - https://core.trac.wordpress.org/ticket/54997

Closing