mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-17 19:16:20 +02:00
Update 15-02-01-PHPDoc.md
This commit is contained in:
@@ -66,7 +66,7 @@ Inside the class, the first method has a [@param] tag documenting the type, name
|
||||
being passed to the method. Additionally it has the [@return] and [@throws] tags for documenting the return type, and any exceptions that could be thrown respectively.
|
||||
|
||||
The second and third methods are very similar and have a single [@param] tag as did the first method. The important
|
||||
difference between the second and third method's doc block is the inclusion/exclusion of the [@return] tag.
|
||||
difference between the second and third methods' doc block is the inclusion/exclusion of the [@return] tag.
|
||||
`@return void` explicitly informs us that there is no return; historically omitting the `@return void` statement also results in the same (no return) action.
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user