Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#60089 closed defect (bug) (invalid)

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

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

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
5 months 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 5 months ago by sabernhardt (previous) (diff)

#2 @swissspidy
5 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.