New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Requests::request_multiple() should have the option documentation in phpDoc #435
Comments
@johnbillion The As this package is not WP specific, I'd rather not use WP specific annotations. |
Correct but as far as I know (although I don't follow them closely) neither PSR-5 nor PSR-19 propose such a syntax. What alternatives are there? |
Either documenting the value as was done already, as part of the description. This is a common pattern. Alternatively, a pattern like seen here can be used, where the |
From https://core.trac.wordpress.org/ticket/48349:
Currently, the
$options
argument field is documented in the description:https://developer.wordpress.org/reference/classes/requests/request_multiple/
I believe it could be documented using phpDoc directly like
Patch at https://core.trac.wordpress.org/attachment/ticket/48349/48349.2.patch
The text was updated successfully, but these errors were encountered: