phpstan.neon 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. parameters:
  2. # TODO: Increase rule-level https://phpstan.org/user-guide/rule-levels
  3. level: 8
  4. fileExtensions:
  5. - php
  6. - phtml
  7. paths:
  8. - .
  9. excludePaths:
  10. analyse:
  11. - lib/marienfressinaud/*
  12. - lib/phpgt/*
  13. - lib/phpmailer/*
  14. - lib/SimplePie/*
  15. - vendor/*
  16. analyseAndScan:
  17. - .git/*
  18. - extensions/node_modules
  19. - extensions/symbolic
  20. - extensions/vendor
  21. - node_modules/*
  22. bootstrapFiles:
  23. - cli/_cli.php
  24. - lib/favicons.php
  25. dynamicConstantNames:
  26. - CACHE_PATH
  27. - COPY_LOG_TO_SYSLOG
  28. - COPY_SYSLOG_TO_STDERR
  29. - DATA_PATH
  30. - MAX_LOG_SIZE
  31. - PUBLIC_RELATIVE
  32. - SIMPLEPIE_SYSLOG_ENABLED
  33. - STDERR
  34. - STDOUT
  35. - TMP_PATH
  36. - USERS_PATH
  37. reportMaybesInPropertyPhpDocTypes: false
  38. treatPhpDocTypesAsCertain: false
  39. strictRules:
  40. allRules: false
  41. booleansInConditions: false # TODO pass
  42. closureUsesThis: true
  43. disallowedConstructs: false
  44. disallowedLooseComparison: false
  45. matchingInheritedMethodNames: true
  46. noVariableVariables: true
  47. numericOperandsInArithmeticOperators: true
  48. overwriteVariablesWithLoop: true
  49. requireParentConstructorCall: true
  50. strictCalls: true
  51. switchConditionsMatchingType: true
  52. uselessCast: true
  53. ignoreErrors:
  54. # - '#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.*#'
  55. includes:
  56. - vendor/phpstan/phpstan-phpunit/extension.neon
  57. - vendor/phpstan/phpstan-phpunit/rules.neon
  58. - vendor/phpstan/phpstan-strict-rules/rules.neon
  59. # - vendor/phpstan/phpstan/conf/bleedingEdge.neon