[wp-trac] [WordPress Trac] #57738: PHP 8.1 Depreciated
WordPress Trac
noreply at wordpress.org
Thu Feb 16 21:23:07 UTC 2023
#57738: PHP 8.1 Depreciated
--------------------------+-----------------------------
Reporter: rtacorp | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.1.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hi, Getting PHP 8.1.9 depreciated notices in the debug.log which you might
wish to correct for the next version of WordPress. Here are the to files
to be corrected:
/wp-includes/Requests/Cookie/Jar.php
/wp-includes/Requests/Utility/CaseInsensitiveDictionary.php
Thanks.
[16-Feb-2023 18:59:56 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-includes/Requests/Cookie/Jar.php
on line 63
[16-Feb-2023 18:59:56 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-includes/Requests/Cookie/Jar.php
on line 73
[16-Feb-2023 18:59:56 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-includes/Requests/Cookie/Jar.php
on line 89
[16-Feb-2023 18:59:56 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-includes/Requests/Cookie/Jar.php
on line 102
[16-Feb-2023 18:59:56 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-includes/Requests/Cookie/Jar.php
on line 111
[16-Feb-2023 18:59:57 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-
includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
[16-Feb-2023 18:59:57 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-
includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
[16-Feb-2023 18:59:57 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-
includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
[16-Feb-2023 18:59:57 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-
includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
[16-Feb-2023 18:59:57 UTC] PHP Deprecated: 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 in /home/lispop2/updona.org/wp-
includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57738>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list