#47407 closed enhancement (fixed)
Documentation `tests_add_filter` function incorrect
Reported by: | remcotolsma | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
In [43555] some documentation was added for the tests_add_filter
function. According the documentation the second parameter $function_to_add
should be an array
or an object
:
@param object|array $function_to_add The function/callback to execute on call.
Should this not be changed to callable
? Same as the add_filter
function?
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/plugin.php#L99
Scrutinizer is complaining about this:
'_manually_load_plugin' of type string is incompatible with the type array|object expected by parameter $function_to_add of tests_add_filter().
Attachments (1)
Change History (7)
Note: See
TracTickets for help on using
tickets.