phpstan.dist.neon 1.3 KB

12345678910111213141516171819202122232425262728293031
  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|Console\\Command\\FixCommand)\.$/'
  16. - '/^\$this\(PhpCsFixer\\Tokenizer\\Tokens\) does not accept PhpCsFixer\\Tokenizer\\Token\|null\.$/'
  17. # PHPUnit data providers return type were not maintained originally, this exception should shrink over time (eg with help of custom, re-usable type)
  18. -
  19. message: '#^Method PhpCsFixer\\Tests\\.+::provide.+Cases\(\) return type has no value type specified in iterable type iterable\.$#'
  20. path: tests
  21. count: 1120
  22. -
  23. message: '#Call to static method .+ with .+ will always evaluate to true.$#'
  24. path: tests
  25. count: 18
  26. tipsOfTheDay: false
  27. tmpDir: dev-tools/phpstan/cache