When documenting PHP, there are two schools of thought regarding the use of @return tags in DocBlocks when the function or method being documented doesn’t actually have a return keyword:
- Don’t include a
@returntag. - Include a
@returntag with a type ofvoid.
I’m not saying that either is wrong, but the second-one is most definitely as far from correct as you can get.
Let’s look at the reasons.
Read the reasons
