[wp-trac] [WordPress Trac] #54672: Deprecated errors on PHP 8.1

WordPress Trac noreply at wordpress.org
Tue Dec 21 03:17:11 UTC 2021


#54672: Deprecated errors on PHP 8.1
--------------------------+-----------------------------
 Reporter:  okvee         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:                |
--------------------------+-----------------------------
 Many errors on PHP 8.1 with WordPress 5.9-beta3-52394

 === On wp-login.php page

 Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of
 type array|string is deprecated in wp-includes\formatting.php on line 5368

 Deprecated: trim(): Passing null to parameter #1 ($string) of type string
 is deprecated in wp-includes\pluggable.php on line 592

 === On admin dashboard page

 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 wp-includes\Requests\Cookie\Jar.php on line 63

 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 wp-includes\Requests\Cookie\Jar.php on line 73

 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 wp-
 includes\Requests\Cookie\Jar.php on line 89

 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 wp-includes\Requests\Cookie\Jar.php on line 102

 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 wp-includes\Requests\Cookie\Jar.php on line 111

 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 wp-
 includes\Requests\Utility\CaseInsensitiveDictionary.php on line 40

 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 wp-includes\Requests\Utility\CaseInsensitiveDictionary.php
 on line 51

 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 wp-
 includes\Requests\Utility\CaseInsensitiveDictionary.php on line 68

 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 wp-
 includes\Requests\Utility\CaseInsensitiveDictionary.php on line 82

 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 wp-includes\Requests\Utility\CaseInsensitiveDictionary.php
 on line 91

 Deprecated: rtrim(): Passing null to parameter #1 ($string) of type string
 is deprecated in wp-includes\formatting.php on line 2756

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54672>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list