phpstan.neon 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. includes:
  2. - dev-tools/vendor/jangregor/phpstan-prophecy/extension.neon
  3. - dev-tools/vendor/phpstan/phpstan/conf/bleedingEdge.neon
  4. - dev-tools/vendor/phpstan/phpstan-phpunit/extension.neon
  5. parameters:
  6. level: 6
  7. paths:
  8. - src
  9. - tests
  10. excludePaths:
  11. - tests/Fixtures
  12. treatPhpDocTypesAsCertain: false
  13. ignoreErrors:
  14. - '/^Class [a-zA-Z\\]+ extends @final class PhpCsFixer\\(ConfigurationException\\InvalidConfigurationException|ConfigurationException\\InvalidFixerConfigurationException|Tokenizer\\Tokens)\.$/'
  15. - '/^\$this\(PhpCsFixer\\Tokenizer\\Tokens\) does not accept PhpCsFixer\\Tokenizer\\Token\|null\.$/'
  16. # ignore PHPUnit data providers return type as they are not checked against the test methods anyway
  17. - '#^Method PhpCsFixer\\Tests\\.+::provide.+Cases\(\) return type has no value type specified in iterable type (array|iterable)\.$#'
  18. -
  19. message: '#Call to static method .+ with .+ will always evaluate to true.$#'
  20. path: tests
  21. count: 24
  22. # baseline, should only shrink
  23. -
  24. message: '#^.+no value type specified in iterable type.+\.$#'
  25. path: src/Fixer
  26. count: 40
  27. tipsOfTheDay: false
  28. tmpDir: dev-tools/phpstan/cache