rector-src
rector-src copied to clipboard
feature: remove @return void from magic methods
This PR removed the dead code from magic methods.
The rule purpose is only remove @return tag when there is native return type.
For removing @return tag when there is no native type, that should be in separate rule so the functionality is isolated, and easy to exclude/skip when needed.
Add another rule under rules/DeadCode/Rector/ClasaMethod, add test under rules-tests/DeadCode/Rector/ClassMethod as well
@parijke Any update on this? I'd like to merge and ship it
No need, just new rule under DeadCode\Recror\ClassMethod is fine imo :)