phpstan.neon.dist 1.0 KB

12345678910111213141516171819202122232425
  1. parameters:
  2. level: 6
  3. treatPhpDocTypesAsCertain: false
  4. reportUnmatchedIgnoredErrors: false
  5. paths:
  6. - src/
  7. # - tests/
  8. ignoreErrors:
  9. - '#zend_monitor_|ZEND_MONITOR_#'
  10. - '#^Cannot call method ltrim\(\) on int\|false.$#'
  11. - '#MongoDB\\(Client|Collection)#'
  12. - message: '#Return type \(string\) of method Monolog\\Formatter\\LineFormatter::normalizeException\(\) should be compatible with return type \(array\) of method Monolog\\Formatter\\NormalizerFormatter::normalizeException\(\)#'
  13. paths:
  14. - src/Monolog/Formatter/LineFormatter.php
  15. - message: '#Method Monolog\\Handler\\LogglyHandler::loadCurlHandle\(\) never returns resource so it can be removed from the return typehint.#'
  16. paths:
  17. - src/Monolog/Handler/LogglyHandler.php
  18. # blocked by https://github.com/phpstan/phpstan/issues/5091
  19. - '#has unknown class Monolog\\Handler\\Record#'
  20. - '#::processRecord#'
  21. - '#is incompatible with native type array.#'