Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#57184 closed defect (bug) (duplicate)

PHP 8.1 Warnings

Reported by: hasanuzzamanshamim Owned by:
Priority: normal Milestone:
Component: HTTP API Version: 6.1.1
Severity: normal Keywords: php8
Cc: Focuses:

Description

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

Attachments (1)

php_8 issue.png (726.2 KB ) - added by hasanuzzamanshamim 4 years ago.

Download all attachments as: .zip

Change History (2)

#1 @swissspidy
4 years ago

  • Component GeneralHTTP API
  • Keywords php8 added
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

We're currently tracking this issue in #54504, so I'm going to close this issue as a duplicate to keep the discussion all in one place.

Note: See TracTickets for help on using tickets.