phpstan.neon 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. - '/^Return typehint of method PhpCsFixer\\Tests\\Test\\.+::createIsIdenticalStringConstraint\(\) has invalid type PHPUnit_Framework_Constraint_IsIdentical\.$/'
  14. - '/^Class (Symfony\\Contracts\\EventDispatcher\\Event|Symfony\\Component\\EventDispatcher\\Event) not found.$/'
  15. - '/^(Access|Call) to an undefined (property|method) PhpCsFixer\\AccessibleObject\\AccessibleObject::.+$/'
  16. - '/^Constant T_NAME_(RELATIVE|FULLY_QUALIFIED|QUALIFIED) not found\.$/'
  17. -
  18. message: '/^Else branch is unreachable because previous condition is always true\.$/'
  19. path: src/Event/Event.php
  20. -
  21. message: '/^Strict comparison using !== between ''@git-commit@'' and ''@git-commit@'' will always evaluate to false\.$/'
  22. path: src/Console/Application.php
  23. -
  24. message: '/^Result of && is always false\.$/'
  25. path: src/Config.php
  26. -
  27. message: '/^Strict comparison using === between false and true will always evaluate to false\.$/'
  28. path: src/Config.php
  29. -
  30. message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
  31. paths:
  32. - src/Config.php
  33. - src/Tokenizer/Token.php
  34. -
  35. message: '/^Parameter #1 \$fixers of method PhpCsFixer\\Config::registerCustomFixers\(\) expects iterable<PhpCsFixer\\Fixer\\FixerInterface>, string given\.$/'
  36. path: tests/ConfigTest.php
  37. -
  38. message: '/^Parameter #1 \$function of function register_shutdown_function expects callable\(\): void, array\(\$this\(PhpCsFixer\\FileRemoval\), ''clean''\) given\.$/'
  39. path: src/FileRemoval.php
  40. -
  41. message: '/^Parameter #1 \$finder of method PhpCsFixer\\Config::setFinder\(\) expects iterable<string>, int given\.$/'
  42. path: tests/ConfigTest.php
  43. - # https://github.com/phpstan/phpstan/issues/1215
  44. message: '/^Strict comparison using === between false and string will always evaluate to false\.$/'
  45. path: src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php
  46. -
  47. message: '/^Unreachable statement - code above always terminates\.$/'
  48. path: tests/AutoReview/DocumentationTest.php
  49. tipsOfTheDay: false