phpstan.dist.neon 1.2 KB

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