phpstan.neon.dist 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. parameters:
  2. level: 8
  3. treatPhpDocTypesAsCertain: false
  4. reportUnmatchedIgnoredErrors: true
  5. paths:
  6. - src/
  7. # - tests/
  8. ignoreErrors:
  9. - '#zend_monitor_|ZEND_MONITOR_#'
  10. - '#MongoDB\\(Client|Collection)#'
  11. # Invalid type info on Redis multi
  12. - '#^Cannot call method ltrim\(\) on int\|false.$#'
  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