Skip to content
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

Open
othercorey opened this issue Sep 23, 2021 · 1 comment
Open

cake 5: Support parameters with only type hints #198

othercorey opened this issue Sep 23, 2021 · 1 comment

Comments

@othercorey
Copy link
Member

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?

image

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).

@othercorey othercorey changed the title cake 5: Support parameters with type hints only cake 5: Support parameters with only type hints Sep 23, 2021
@othercorey
Copy link
Member Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant