[wp-trac] [WordPress Trac] #57299: Implement array key type notation
WordPress Trac
noreply at wordpress.org
Thu Dec 8 22:49:50 UTC 2022
#57299: Implement array key type notation
-------------------------+-------------------------------------
Reporter: johnbillion | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses: docs, coding-standards
-------------------------+-------------------------------------
Comment (by johnbillion):
Oh I forgot to add there's also a shorter `list<string>` syntax for lists
(arrays with sequential integer keys), and while this is well supported in
static analysis tools it's much less supported in editors and IDEs. The
Intelephense extension for VS Code doesn't support it, for example,
although PHPStorm does appear to. I recommend for now that we don't
implement `list<>`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57299#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list