phpstorm-behat
phpstorm-behat copied to clipboard
[Code inspection] Validating if Behat hook is annotated on static method
Regarding to documentation Behat must be annotated on static methods (http://docs.behat.org/guides/3.hooks.html). Plugin should validate if annotation is added to static method, if not - mark method as invalid (ERROR) with two quick fixes:
- remove annotation
- make method static