Closed mhgtlc closed 1 year ago
Closing as reported to the wrong repo.
Please report bugs for externally maintained sniffs to the appropriate external standard repository (not here).
P.S.: I happen to know this has already been fixed in the PHPCompatibility develop
branch.
@jrfnl could you include the commit or version to use, in order to fix this
@golliholzland As stated before: this question is about a sniff from another - externally maintained - project. Check the repo of that project and don't ask here.
Describe the bug A clear and concise description of what the bug is.
Code sample
Custom ruleset
To reproduce Steps to reproduce the behavior:
test.php
with the code sample above...phpcs test.php ...
Expected behavior $this should be allowed inside enum methods, please take a look at this example: https://stitcher.io/blog/php-enums
Versions (please complete the following information):