phpstorm-behat icon indicating copy to clipboard operation
phpstorm-behat copied to clipboard

[Code inspection] Validating if Behat hook is annotated on static method

Open mprzytulski opened this issue 11 years ago • 0 comments

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

mprzytulski avatar Aug 28 '13 21:08 mprzytulski