Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#60089 closed defect (bug) (invalid)

On PHP 8.2 notice: FS_Key_Value_Storage::offsetGet($k)

Reported by: nurielmeni Owned by:
Priority: normal Milestone:
Component: General Version: 6.4.2
Severity: normal Keywords: close
Cc: Focuses:

Description

On PHP 8.0, no notice is shown.
on 8.2 this is the error:

Return type of FS_Key_Value_Storage::offsetGet($k) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange]

Change History (2)

#1 @sabernhardt
3 years ago

  • Keywords close added

The file reference later in the PHP deprecation notice should include a plugin, which apparently has an outdated version of Freemius SDK. Please report this to the plugin authors.

Freemius SDK silenced the notices last year, and the top plugins that include FS_Key_Value_Storage now use #[ReturnTypeWillChange].

Last edited 3 years ago by sabernhardt (previous) (diff)

#2 @swissspidy
3 years ago

  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed
Note: See TracTickets for help on using tickets.