phpstan.neon.dist 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. parameters:
  2. level: 8
  3. treatPhpDocTypesAsCertain: false
  4. reportUnmatchedIgnoredErrors: true
  5. paths:
  6. - src/
  7. # - tests/
  8. excludePaths:
  9. - 'src/Monolog/Handler/PHPConsoleHandler.php'
  10. ignoreErrors:
  11. - '#zend_monitor_|ZEND_MONITOR_#'
  12. - '#MongoDB\\(Client|Collection)#'
  13. # Cannot resolve this cleanly as different normalizers return different types but it is safe
  14. - message: '#Return type \(string\) of method Monolog\\Formatter\\LineFormatter::normalizeException\(\) should be compatible with return type \(array\) of method Monolog\\Formatter\\NormalizerFormatter::normalizeException\(\)#'
  15. paths:
  16. - src/Monolog/Formatter/LineFormatter.php
  17. # can be removed when rollbar/rollbar can be added as dev require again (needs to allow monolog 3.x)
  18. - '#Rollbar\\RollbarLogger#'
  19. # legacy elasticsearch namespace failures
  20. - '# Elastic\\Elasticsearch\\#'
  21. includes:
  22. - phpstan-baseline.neon
  23. - vendor/phpstan/phpstan-strict-rules/rules.neon
  24. - vendor/phpstan/phpstan-deprecation-rules/rules.neon