Chapter 16 to be updated with php's typehinting and return types?
svdv22 opened this issue · 3 comments
svdv22 commented
Now that PHP supports typehinting and return types the @param, @return and also @throws documentations are obsolete. Explaining these would be outside the scope of that chapter, but personally I would not advice to still use them. Perhaps limit the chapter to just the example of @author and @link with a link to phpDocumentor.
What are your thoughts?
SandroMiguel commented
I do not agree, especially with @param because you can provide a description which can be helpful in cases where the type hint alone does not provide enough information about the expected parameter value.