aboutsummaryrefslogtreecommitdiff
path: root/phpstan.neon
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-14 09:36:15 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-14 09:36:15 +0200
commit8abfb07dc1263fa936c16bafa90e3dc91bca1397 (patch)
treed5c793bba1b815cfd64d0ae055fa1959eee0965f /phpstan.neon
parentdf763eb8b34b9823511d93ec078d4644d3e6ff64 (diff)
Use recommended phpstan.dist.neon (#6892)
* Rename to phpstan.dist.neon * gitignore phpstan.neon * Update phpstan-next accordingly * Fixes for PHPStan bleedingEdge
Diffstat (limited to 'phpstan.neon')
-rw-r--r--phpstan.neon65
1 files changed, 0 insertions, 65 deletions
diff --git a/phpstan.neon b/phpstan.neon
deleted file mode 100644
index 793403c42..000000000
--- a/phpstan.neon
+++ /dev/null
@@ -1,65 +0,0 @@
-parameters:
- level: 9 # https://phpstan.org/user-guide/rule-levels
- fileExtensions:
- - php
- - phtml
- paths:
- - .
- excludePaths:
- analyse:
- - lib/marienfressinaud/*
- - lib/phpgt/*
- - lib/phpmailer/*
- - lib/simplepie/*
- - vendor/*
- analyseAndScan:
- - .git/*
- - extensions/node_modules
- - extensions/symbolic
- - extensions/vendor
- - node_modules/*
- bootstrapFiles:
- - cli/_cli.php
- - lib/favicons.php
- dynamicConstantNames:
- - CACHE_PATH
- - COPY_LOG_TO_SYSLOG
- - COPY_SYSLOG_TO_STDERR
- - DATA_PATH
- - MAX_LOG_SIZE
- - PUBLIC_RELATIVE
- - SIMPLEPIE_SYSLOG_ENABLED
- - STDERR
- - STDOUT
- - TMP_PATH
- - USERS_PATH
- checkMissingOverrideMethodAttribute: true
- reportMaybesInPropertyPhpDocTypes: false
- treatPhpDocTypesAsCertain: false
- strictRules:
- allRules: false
- booleansInConditions: true
- closureUsesThis: true
- disallowedConstructs: false
- disallowedLooseComparison: false
- matchingInheritedMethodNames: true
- noVariableVariables: true
- numericOperandsInArithmeticOperators: true
- overwriteVariablesWithLoop: true
- requireParentConstructorCall: true
- strictCalls: true
- switchConditionsMatchingType: true
- uselessCast: true
- exceptions:
- check:
- missingCheckedExceptionInThrows: false # TODO pass
- tooWideThrowType: true
- implicitThrows: false
- checkedExceptionClasses:
- - 'Minz_Exception'
- ignoreErrors:
- - '#Only booleans are allowed in (a negated boolean|a ternary operator condition|an elseif condition|an if condition|&&|\|\|), (bool|false|int(<[0-9, max]+>)?|true|null|\|)+ given.*#'
-includes:
- - vendor/phpstan/phpstan-phpunit/extension.neon
- - vendor/phpstan/phpstan-phpunit/rules.neon
- - vendor/phpstan/phpstan-strict-rules/rules.neon