phpstan.neon 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. - extensions/node_modules
  20. - extensions/symbolic
  21. - extensions/vendor
  22. - node_modules/*
  23. bootstrapFiles:
  24. - cli/_cli.php
  25. - lib/favicons.php
  26. dynamicConstantNames:
  27. - CACHE_PATH
  28. - COPY_LOG_TO_SYSLOG
  29. - COPY_SYSLOG_TO_STDERR
  30. - DATA_PATH
  31. - MAX_LOG_SIZE
  32. - PUBLIC_RELATIVE
  33. - SIMPLEPIE_SYSLOG_ENABLED
  34. - STDERR
  35. - STDOUT
  36. - TMP_PATH
  37. - USERS_PATH
  38. reportMaybesInPropertyPhpDocTypes: 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: false # TODO pass
  47. numericOperandsInArithmeticOperators: true
  48. overwriteVariablesWithLoop: true
  49. requireParentConstructorCall: true
  50. strictCalls: true
  51. switchConditionsMatchingType: true
  52. uselessCast: true
  53. includes:
  54. - vendor/phpstan/phpstan-phpunit/extension.neon
  55. - vendor/phpstan/phpstan-phpunit/rules.neon
  56. - vendor/phpstan/phpstan-strict-rules/rules.neon