[wp-trac] [WordPress Trac] #47704: PHP 7.4: Fix issues regarding accessing null/bool/etc as if they were an array
WordPress Trac
noreply at wordpress.org
Mon Jul 15 06:24:17 UTC 2019
#47704: PHP 7.4: Fix issues regarding accessing null/bool/etc as if they were an
array
-------------------------------------------------+-------------------------
Reporter: jrf | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: General | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion has-unit- | Focuses:
tests |
-------------------------------------------------+-------------------------
Comment (by pento):
In [changeset:"45639" 45639]:
{{{
#!CommitTicketReference repository="" revision="45639"
Code Modernisation: Fix known instances of array access on data types that
can't be accessed as arrays.
PHP 7.4 addes a warning when trying access a null/bool/int/float/resource
(everything but array, string and object) as if it were an array.
This change fixes all of these warnings visible in unit tests.
Props jrf.
See #47704.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47704#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list