Opened 17 months ago
Last modified 17 months ago
#6975 new defect (bug)
Ellipsis operator missing from variadic functions
Reported by: | johnbillion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Component: | Developer Hub | Keywords: | |
Cc: |
Description
Variadic functions are not documented as such on the developer reference site. The ...
variadic operator is not shown.
Example: https://developer.wordpress.org/reference/functions/apply_filters/
The ...args
parameter of this function is documented in core with the ...
variadic operator, but it's shown on the developer reference only as $args
.
The ellipsis should be retained for any parameter that includes it.
Note: See
TracTickets for help on using
tickets.
Noting that this should be fixed in the
phpdoc-parser
repo, likely around here: https://github.com/WordPress/phpdoc-parser/blob/master/lib/runner.php#L271-L288