[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:09:24 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_Utility_CaseInsensitiveDictionary::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/Utility/CaseInsensitiveDictionary.php:40
Return type of Requests_Utility_CaseInsensitiveDictionary::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/Utility/CaseInsensitiveDictionary.php:51
Return type of Requests_Utility_CaseInsensitiveDictionary::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/Utility/CaseInsensitiveDictionary.php:68
Return type of
Requests_Utility_CaseInsensitiveDictionary::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/Utility/CaseInsensitiveDictionary.php:82
Return type of Requests_Utility_CaseInsensitiveDictionary::getIterator()
should either be compatible with IteratorAggregate::getIterator():
Traversable, or the #[\ReturnTypeWillChange] attribute should be used to
temporarily suppress the notice
wp-includes/Requests/Utility/CaseInsensitiveDictionary.php:91
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55656#comment:55>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list