phpstan.neon 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. includes:
  2. - dev-tools/vendor/jangregor/phpstan-prophecy/src/extension.neon
  3. - dev-tools/vendor/phpstan/phpstan/conf/bleedingEdge.neon
  4. - dev-tools/vendor/phpstan/phpstan-phpunit/extension.neon
  5. parameters:
  6. level: 5
  7. paths:
  8. - src
  9. - tests
  10. excludes_analyse:
  11. - tests/Fixtures
  12. ignoreErrors:
  13. - '/^Constant T_NAME_(RELATIVE|FULLY_QUALIFIED|QUALIFIED) not found\.$/'
  14. - '/assertInstanceOf\(\) expects class-string.*, string given/'
  15. -
  16. message: '/^Strict comparison using !== between ''@git-commit@'' and ''@git-commit@'' will always evaluate to false\.$/'
  17. path: src/Console/Application.php
  18. -
  19. message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
  20. paths:
  21. - src/Tokenizer/Token.php
  22. - # https://github.com/phpstan/phpstan/issues/1215
  23. message: '/^Strict comparison using === between false and string will always evaluate to false\.$/'
  24. path: src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php
  25. -
  26. message: '/^Property .*::\$indicator .* does not accept null\.$/'
  27. path: tests/Indicator/PhpUnitTestCaseIndicatorTest.php
  28. -
  29. message: '/^Constant T_ATTRIBUTE not found\.$/'
  30. path: src/Tokenizer/Transformer/AttributeTransformer.php
  31. -
  32. message: '/^\$this\(PhpCsFixer\\Tokenizer\\Tokens\) does not accept PhpCsFixer\\Tokenizer\\Token\|null\.$/'
  33. path: src/Tokenizer/Tokens.php
  34. -
  35. message: '/^Class Test\dConfig not found\.$/'
  36. path: tests/Console/ConfigurationResolverTest.php
  37. tipsOfTheDay: false