-
Notifications
You must be signed in to change notification settings - Fork 19
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
cake 5: Support parameters with only type hints #198
Comments
othercorey
changed the title
cake 5: Support parameters with type hints only
cake 5: Support parameters with only type hints
Sep 23, 2021
The current behavior is to use the type hint if no annotation exists and all parameters are listed in the block. These are often just duplicates of the data in the function signature. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Starting with cake 5, some function parameters won't have matching docblock
@param
annotations.Do we want to still list these parameters in the parameter block with no description or should we hide them?
These parameters won't have a matching annotation because PHP 8 allows union types that fully documents the allowed types and the parameter name is self-documenting (the annotation description isn't helpful).
The text was updated successfully, but these errors were encountered: