Make WordPress Core

#57184 closed defect (bug) (duplicate)

PHP 8.1 Warnings

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


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 19 months ago.

Download all attachments as: .zip

Change History (2)

#1 @swissspidy
19 months ago

  • Component changed from General to HTTP API
  • Keywords php8 added
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

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.