[wp-trac] [WordPress Trac] #55411: Deprecated error in WordPress 5.9 on PHP 8.1

WordPress Trac noreply at wordpress.org
Thu Mar 17 16:07:07 UTC 2022


#55411: Deprecated error in WordPress 5.9 on PHP 8.1
---------------------------+------------------------------
 Reporter:  meysamnorouzi  |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  5.9.2
 Severity:  normal         |  Resolution:
 Keywords:                 |     Focuses:
---------------------------+------------------------------

Comment (by DarkoG):

 Few more from me


 {{{
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-includes/Requests/Cookie/Jar.php on
 line 63
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-includes/Requests/Cookie/Jar.php on
 line 73
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-includes/Requests/Cookie/Jar.php on
 line 89
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-includes/Requests/Cookie/Jar.php on
 line 102
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-includes/Requests/Cookie/Jar.php on
 line 111
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-
 includes/Requests/Utility/CaseInsensitiveDictionary.php on line 40
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-
 includes/Requests/Utility/CaseInsensitiveDictionary.php on line 51
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-
 includes/Requests/Utility/CaseInsensitiveDictionary.php on line 68
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-
 includes/Requests/Utility/CaseInsensitiveDictionary.php on line 82
 [15-Mar-2022 22:22:33 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/vagrant/code/wp-
 includes/Requests/Utility/CaseInsensitiveDictionary.php on line 91
 [15-Mar-2022 22:21:33 UTC] PHP Deprecated:  rtrim(): Passing null to
 parameter #1 ($string) of type string is deprecated in
 /home/vagrant/code/test/wp-includes/formatting.php on line 2761


 }}}

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


More information about the wp-trac mailing list