phpstan.neon 1.3 KB

12345678910111213141516171819202122232425262728
  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. ignoreErrors:
  13. - '/^Class [a-zA-Z\\]+ extends @final class PhpCsFixer\\(ConfigurationException\\InvalidConfigurationException|ConfigurationException\\InvalidFixerConfigurationException|Tokenizer\\Tokens)\.$/'
  14. - '/^Unsafe call to private method [a-zA-Z\\]+::[a-zA-Z]+\(\) through static::\.$/'
  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\.$#'
  18. - '#^Method PhpCsFixer\\Tests\\.+::provide.+Cases\(\) return type has no value type specified in iterable type iterable\.$#'
  19. # baseline, should only shrink
  20. -
  21. message: '#^.+no value type specified in iterable type.+\.$#'
  22. path: *
  23. count: 542
  24. tipsOfTheDay: false
  25. tmpDir: dev-tools/phpstan/cache