[wp-trac] [WordPress Trac] #53635: PHP 8.1: various compatibility fixes
WordPress Trac
noreply at wordpress.org
Tue Nov 30 13:40:22 UTC 2021
#53635: PHP 8.1: various compatibility fixes
--------------------------------------------+------------------------------
Reporter: SergeyBiryukov | Owner: hellofromTonya
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 5.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: php81 has-patch has-unit-tests | Focuses: coding-
| standards
--------------------------------------------+------------------------------
Comment (by spacedmonkey):
As part of my work on the plugin Web stories, we upgraded our tests to run
under PHP 8.1. There were a couple of notice errors we saw in our
[https://github.com/google/web-stories-
wp/runs/4336028931?check_suite_focus=true#step:15:36 logs].
These errors are
> PHP Deprecated: rtrim(): Passing null to parameter #1 ($string) of type
string is deprecated in /tmp/wordpress/wp-includes/formatting.php on line
2753
> PHP Deprecated: trim(): Passing null to parameter #1 ($string) of type
string is deprecated in /tmp/wordpress/wp-includes/class-wp-user.php on
line 211
These will need to be fixed for full PHP 8.1 support.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53635#comment:151>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list