Files
pterodactyl-panel/phpstan-rules.neon
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

30 lines
1.1 KiB
Plaintext

includes:
- phpstan.neon
- tools/phpstan/rules/extension.neon
- tools/phpstan/rules/laravel/extension.neon
parameters:
# The documented rules dynamic-access rule relies on PHPStan's
# variable-variable checks. The extension's remaining bundled strict
# style rules are deliberately outside the panel adoption policy.
strictRules:
allRules: false
noVariableVariables: true
strictRulesInstalled: false
# phpstan-strict-rules also changes core PHPStan switches when its config
# is included. Those compatibility/style checks are not part of the
# documented rules adopted by the panel.
checkFunctionNameCase: false
checkInternalClassCaseSensitivity: false
checkDynamicProperties: false
checkExplicitMixedMissingReturn: false
polluteScopeWithLoopInitialAssignments: true
polluteScopeWithAlwaysIterableForeach: true
polluteScopeWithBlock: true
reportMaybesInMethodSignatures: false
reportStaticMethodSignatures: false
reportMaybesInPropertyPhpDocTypes: false
reportWrongPhpDocTypeInVarTag: false
checkStrictPrintfPlaceholderTypes: false