[wp-trac] [WordPress Trac] #57184: PHP 8.1 Warnings

WordPress Trac noreply at wordpress.org
Wed Nov 23 10:37:33 UTC 2022


#57184: PHP 8.1 Warnings
--------------------------------+-----------------------------
 Reporter:  hasanuzzamanshamim  |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  General             |    Version:  6.1.1
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 On PHP 8.1, the "offsetExists" function throws warnings to type hints or
 suggests adding a flag.

 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 /Volumes/Projects/payform/wp-
 includes/Requests/Cookie/Jar.php on line 63

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


More information about the wp-trac mailing list