[wp-trac] [WordPress Trac] #63957: PHP 8.5: Using `null` as array offsets
WordPress Trac
noreply at wordpress.org
Mon Nov 10 20:27:03 UTC 2025
#63957: PHP 8.5: Using `null` as array offsets
-------------------------------------------+-------------------------------
Reporter: swissspidy | Owner: swissspidy
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: php85 has-patch needs-testing | Focuses: php-
| compatibility
-------------------------------------------+-------------------------------
Changes (by westonruter):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"61191" 61191]:
{{{
#!CommitTicketReference repository="" revision="61191"
Code Modernization: Fix instances of using `null` as an array offset.
This avoids using multisite-specific tables and columns in
`WP_Date_Query::validate_column()` when on a non-multisite install.
Attempting to use `$wpdb->blogs` as an array index when `null` on a non-
multisite install causes a deprecation notice in PHP 8.5. This also
updates the multisite table alias in `wpdb` to make it clear they could be
`null`.
Developed in https://github.com/WordPress/wordpress-develop/pull/10498
Follow-up to [60904], [60809], [37477].
Props westonruter, desrosj.
See #63061.
Fixes #63957.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63957#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list