Closed Metalaka closed 8 years ago
Why is it that complicated? Can't use something like (in pseudo-code):
if ($method is CONSTRUCT_NAME) {
if ($docBlock = $method->getDocBlock()) {
$docBlock->removeTag('return');
}
}
I don't understand why you reach the T_FUNCTION
token, manage several line blocks etc.
i refactored the code to be more readable, but I can't make it as simple as you write.
Looks correct! Thanks :-).
Tested on https://github.com/hoaproject/Acl/pull/18, it works great!
Fix #12