PHP Compatibility check for PHP_CodeSniffer
1844 159 54 318
  • 000
Bug Description When using $this in an enum method in PHP 8, I receive this: "$this" can no longer be used in a plain function or method since PHP 7.1. (PHPCompatibility.Variables.ForbiddenThisUseContexts.OutsideObjectContext) Given the following reproduction Scenario The issue happens when runni...