Suppose I have a function a
that throws an exception $e
. Hence, according to phpdoc
I should have an annotation @throws
over the definition of a
.
When I have another function b
calling a
function b() {
a();
}
is it good practice/bad practice/correct/wrong to have a @throw
annotation over the definition of b
indicating that b
could throw that kind of exception?