Added PHPStan rule to flag usages of legacy enum accessors provided by LegacyEnumShimTrait

closes #6061
This commit is contained in:
Dylan K. Taylor
2023-09-20 19:42:21 +01:00
parent fe3e2cc90a
commit 3f7abf29a8
2 changed files with 79 additions and 0 deletions

View File

@ -10,6 +10,7 @@ includes:
- vendor/phpstan/phpstan-strict-rules/rules.neon
rules:
- pocketmine\phpstan\rules\DeprecatedLegacyEnumAccessRule
- pocketmine\phpstan\rules\DisallowEnumComparisonRule
- pocketmine\phpstan\rules\DisallowForeachByReferenceRule
- pocketmine\phpstan\rules\UnsafeForeachArrayOfStringRule