You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the linked PR feels wrong, the types should always be present
If the param do not document anything (type hints exist), drop them
But if they do have a description, keep them in sync with native hints
@PARAM without a variable is extremely common for documentation of actions/filters in the WP ecosystem and found not only in WP itself but probably most plugins
Activity
williamdes commentedon Apr 6, 2024
And reported as invalid items I guess ?
jaapio commentedon Apr 8, 2024
Yes these will be reported as
InvalidTagnorkunas commentedon Apr 12, 2024
so basically this is opposite to symfony/symfony#54523 ?
williamdes commentedon Apr 12, 2024
the linked PR feels wrong, the types should always be present
If the param do not document anything (type hints exist), drop them
But if they do have a description, keep them in sync with native hints
Anyway, that's only my point of view 😁
jaapio commentedon Apr 12, 2024
Types are optional. I just noticed that the description of this issue is wrong. Thanks for the headsup @norkunas
kkmuffme commentedon Dec 7, 2025
@PARAM without a variable is extremely common for documentation of actions/filters in the WP ecosystem and found not only in WP itself but probably most plugins