[wp-trac] [WordPress Trac] #60190: Drop PHP 4 support for arrays with 1 object element
WordPress Trac
noreply at wordpress.org
Sat Feb 24 09:50:43 UTC 2024
#60190: Drop PHP 4 support for arrays with 1 object element
----------------------------------------+-----------------------------
Reporter: kkmuffme | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by swissspidy):
* keywords: has-patch has-unit-tests => has-patch needs-unit-tests
* version: trunk =>
* type: defect (bug) => enhancement
* milestone: Awaiting Review => Future Release
Comment:
> As outlined in OP it will lead to a fatal if any callback uses PHP
native types for array; you'll get:
A test to demonstrate this would be great, just for completeness sake
Right now this patch removes a unit test, but the test actually still
passes with the proposed patch, so why remove it?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60190#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list