#47407 closed enhancement (fixed)
Documentation `tests_add_filter` function incorrect
| Reported by: | remcotolsma | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.4 |
| Component: | Build/Test Tools | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)