Ban foreach by-reference at the PHPStan level

This commit is contained in:
Dylan K. Taylor
2023-08-08 17:08:13 +01:00
parent 710177ceb5
commit c1638ffaab
4 changed files with 60 additions and 4 deletions

View File

@ -11,6 +11,7 @@ includes:
rules:
- pocketmine\phpstan\rules\DisallowEnumComparisonRule
- pocketmine\phpstan\rules\DisallowForeachByReferenceRule
- pocketmine\phpstan\rules\UnsafeForeachArrayOfStringRule
# - pocketmine\phpstan\rules\ThreadedSupportedTypesRule