phpstan.neon 1.2 KB

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