[wp-trac] [WordPress Trac] #41756: Document arrays of a known type as such
WordPress Trac
noreply at wordpress.org
Wed Aug 30 11:24:46 UTC 2017
#41756: Document arrays of a known type as such
---------------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: ongoing 2nd-opinion | Focuses: docs
---------------------------------+------------------------------
Comment (by GaryJ):
The draft PSR-5 (which phpDocumentor generally follows) also allows for an
[https://github.com/phpDocumentor/fig-
standards/blob/b994d853b8ba33bd4bfb00e53cc268d57a5d1e7b/proposed/phpdoc.md#examples-12
"inline PHPDoc"] for arrays contained mixed type items, or there's
`mixed[]`.
So long as the parser can (be made to) understand it, and that popular
IDEs understand the formats (or it at least has no detrimental effects),
then +1.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41756#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list