phpstan.dist.neon 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. parameters:
  2. phpVersion:
  3. min: 80100 # PHP 8.1
  4. max: 80499 # PHP 8.4
  5. level: 10 # https://phpstan.org/user-guide/rule-levels
  6. fileExtensions:
  7. - php
  8. - phtml
  9. paths:
  10. - .
  11. excludePaths:
  12. analyse:
  13. - lib/marienfressinaud/*
  14. - lib/phpgt/*
  15. - lib/phpmailer/*
  16. - lib/simplepie/*
  17. analyseAndScan:
  18. - .git/*?
  19. - extensions/node_modules?
  20. - extensions/symbolic?
  21. - extensions/vendor?
  22. - node_modules/*?
  23. - vendor/*
  24. bootstrapFiles:
  25. - cli/_cli.php
  26. - lib/favicons.php
  27. dynamicConstantNames:
  28. - CACHE_PATH
  29. - COPY_LOG_TO_SYSLOG
  30. - COPY_SYSLOG_TO_STDERR
  31. - DATA_PATH
  32. - MAX_LOG_SIZE
  33. - PUBLIC_RELATIVE
  34. - SIMPLEPIE_SYSLOG_ENABLED
  35. - STDERR
  36. - STDOUT
  37. - TMP_PATH
  38. - USERS_PATH
  39. checkBenevolentUnionTypes: true
  40. checkImplicitMixed: false # TODO pass
  41. checkMissingOverrideMethodAttribute: true
  42. checkTooWideReturnTypesInProtectedAndPublicMethods: true
  43. reportAnyTypeWideningInVarTag: true
  44. treatPhpDocTypesAsCertain: false
  45. strictRules:
  46. disallowedEmpty: false
  47. disallowedLooseComparison: false
  48. disallowedShortTernary: false
  49. strictArrayFilter: false # TODO pass
  50. exceptions:
  51. check:
  52. missingCheckedExceptionInThrows: false # TODO pass
  53. tooWideThrowType: true
  54. implicitThrows: false
  55. checkedExceptionClasses:
  56. - 'Minz_Exception'
  57. ignoreErrors:
  58. - '#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.*#'
  59. includes:
  60. - vendor/phpstan/phpstan-phpunit/extension.neon
  61. - vendor/phpstan/phpstan-phpunit/rules.neon
  62. - vendor/phpstan/phpstan-strict-rules/rules.neon