phpstan.neon 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. - '/^Constant T_NAME_(RELATIVE|FULLY_QUALIFIED|QUALIFIED) not found\.$/'
  16. -
  17. message: '/^Unsafe usage of new static\(\)\.$/'
  18. path: src/Config.php
  19. -
  20. message: '/^Else branch is unreachable because previous condition is always true\.$/'
  21. path: src/Event/Event.php
  22. -
  23. message: '/^Strict comparison using !== between ''@git-commit@'' and ''@git-commit@'' will always evaluate to false\.$/'
  24. path: src/Console/Application.php
  25. -
  26. message: '/^Result of && is always false\.$/'
  27. path: src/Config.php
  28. -
  29. message: '/^Strict comparison using === between false and true will always evaluate to false\.$/'
  30. path: src/Config.php
  31. -
  32. message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
  33. paths:
  34. - src/Config.php
  35. - src/Tokenizer/Token.php
  36. -
  37. message: '/^Parameter #1 \$fixers of method PhpCsFixer\\Config::registerCustomFixers\(\) expects iterable<PhpCsFixer\\Fixer\\FixerInterface>, string given\.$/'
  38. path: tests/ConfigTest.php
  39. -
  40. message: '/^Parameter #1 \$options of method PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolverRootless::resolve\(\) expects array<string, mixed>, array<int, string> given\.$/'
  41. path: tests/FixerConfiguration/FixerConfigurationResolverRootlessTest.php
  42. -
  43. message: '/^Parameter #1 \$function of function register_shutdown_function expects callable\(\): void, array\(\$this\(PhpCsFixer\\FileRemoval\), ''clean''\) given\.$/'
  44. path: src/FileRemoval.php
  45. -
  46. message: '/^Parameter #1 \$finder of method PhpCsFixer\\Config::setFinder\(\) expects iterable<string>, int given\.$/'
  47. path: tests/ConfigTest.php
  48. tipsOfTheDay: false