[wp-trac] [WordPress Trac] #55656: PHP 8.x: various compatibility fixes for WordPress 6.1

WordPress Trac noreply at wordpress.org
Fri Sep 30 19:08:22 UTC 2022


#55656: PHP 8.x: various compatibility fixes for WordPress 6.1
-------------------------------------------------+-------------------------
 Reporter:  hellofromTonya                       |       Owner:
                                                 |  SergeyBiryukov
     Type:  task (blessed)                       |      Status:  accepted
 Priority:  normal                               |   Milestone:  6.1
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  php8 php81 has-patch has-unit-tests  |     Focuses:  coding-
                                                 |  standards
-------------------------------------------------+-------------------------

Comment (by tillkruess):

 {{{
 Return type of Requests_Cookie_Jar::offsetExists($key) should either be
 compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice
 wp-includes/Requests/Cookie/Jar.php:63

 Return type of Requests_Cookie_Jar::offsetGet($key) should either be
 compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice
 wp-includes/Requests/Cookie/Jar.php:73

 Return type of Requests_Cookie_Jar::offsetSet($key, $value) should either
 be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value):
 void, or the #[\ReturnTypeWillChange] attribute should be used to
 temporarily suppress the notice
 wp-includes/Requests/Cookie/Jar.php:89

 Return type of Requests_Cookie_Jar::offsetUnset($key) should either be
 compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice
 wp-includes/Requests/Cookie/Jar.php:102

 Return type of Requests_Cookie_Jar::getIterator() should either be
 compatible with IteratorAggregate::getIterator(): Traversable, or the
 #[\ReturnTypeWillChange] attribute should be used to temporarily suppress
 the notice
 wp-includes/Requests/Cookie/Jar.php:111
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55656#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list