[wp-trac] [WordPress Trac] #63977: PHP 8.5: Interactivity API: Cannot use bool as array
WordPress Trac
noreply at wordpress.org
Mon Sep 15 12:57:38 UTC 2025
#63977: PHP 8.5: Interactivity API: Cannot use bool as array
-------------------------------+--------------------------------
Reporter: swissspidy | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: Interactivity API | Version:
Severity: normal | Resolution: fixed
Keywords: php85 has-patch | Focuses: php-compatibility
-------------------------------+--------------------------------
Changes (by swissspidy):
* owner: (none) => swissspidy
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60741" 60741]:
{{{
#!CommitTicketReference repository="" revision="60741"
Interactivity API: Fix "Cannot use bool as array" error.
Improves PHP 8.5 compatibility where calling `list()` on an empty array
throws a warning.
Props swissspidy, jonsurrell, mukesh27.
Fixes #63977.
See #63061.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63977#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list