Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 9f7ceb2

Browse files
authored
Apply change request to spec order or params
Apply change request to spec order or param annotations
1 parent 0063b6f commit 9f7ceb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

guides/v2.1/coding-standards/docblock-standard-general.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ Functions and methods should have:
344344
* The declaration of all arguments (if any) using `@param` tag, unless the argument type is indicated in the method signature.
345345
All `@param` annotations must include the appropriate argument type.
346346
If any argument requires a `@param` annotation, all arguments must be listed (all or none).
347+
* The `@param` annotations must be in the same order as the method arguments.
347348
* The declaration of the return type using the `@return` tag must only be added if the method return type signature
348349
does not supply all necessary information (see below for more information on return types).
349350
* Declaration of possibly thrown exception using `@throws` tag, if the actual body of function triggers throwing an exception.

0 commit comments

Comments
 (0)