Making WordPress.org

Opened 10 months ago

Last modified 10 months ago

#6975 new defect (bug)

Ellipsis operator missing from variadic functions

Reported by: johnbillion's profile 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.

Change History (1)

#1 @dd32
10 months ago

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

Note: See TracTickets for help on using tickets.