phpstan.neon.dist 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. # Invalid type info on Redis multi
  14. - '#^Cannot call method ltrim\(\) on int\|false.$#'
  15. # Cannot resolve this cleanly as different normalizers return different types but it is safe
  16. - message: '#Return type \(string\) of method Monolog\\Formatter\\LineFormatter::normalizeException\(\) should be compatible with return type \(array\) of method Monolog\\Formatter\\NormalizerFormatter::normalizeException\(\)#'
  17. paths:
  18. - src/Monolog/Formatter/LineFormatter.php
  19. # can be removed when rollbar/rollbar can be added as dev require again (needs to allow monolog 3.x)
  20. - '#Rollbar\\RollbarLogger#'
  21. # legacy elasticsearch namespace failures
  22. - '# Elastic\\Elasticsearch\\#'
  23. includes:
  24. - phpstan-baseline.neon
  25. - vendor/phpstan/phpstan-strict-rules/rules.neon
  26. - vendor/phpstan/phpstan-deprecation-rules/rules.neon