Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function beforeController(Controller $controller, string $methodName): vo
* @param string $methodName
* @param string $annotationName
* @param class-string<T> $attributeClass
* @param string $overwriteKey

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as strict types are used in the method signature you do not need to re-declare them in the doc blocks - as long as there is no further information like a description what this parameter is doing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@susnux
Thanks for pointing that out!
I thought it would be better to keep them just to ensure better autocompletion and type checking in static analysis tools and IDEs.

* @return ?ARateLimit
*/
protected function readLimitFromAnnotationOrAttribute(Controller $controller, string $methodName, string $annotationName, string $attributeClass, string $overwriteKey): ?ARateLimit {
Expand Down