phpstan.neon 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. - '/assertInstanceOf\(\) expects class-string.*, string given/'
  17. -
  18. message: '/^Unsafe usage of new static\(\)\.$/'
  19. path: src/Config.php
  20. -
  21. message: '/^Else branch is unreachable because previous condition is always true\.$/'
  22. path: src/Event/Event.php
  23. -
  24. message: '/^Strict comparison using !== between ''@git-commit@'' and ''@git-commit@'' will always evaluate to false\.$/'
  25. path: src/Console/Application.php
  26. -
  27. message: '/^Result of && is always false\.$/'
  28. path: src/Config.php
  29. -
  30. message: '/^Strict comparison using === between false and true will always evaluate to false\.$/'
  31. path: src/Config.php
  32. -
  33. message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
  34. paths:
  35. - src/Config.php
  36. - src/Tokenizer/Token.php
  37. -
  38. message: '/^Parameter #1 \$fixers of method PhpCsFixer\\Config::registerCustomFixers\(\) expects iterable<PhpCsFixer\\Fixer\\FixerInterface>, string given\.$/'
  39. path: tests/ConfigTest.php
  40. -
  41. message: '/^Parameter #1 \$options of method PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolverRootless::resolve\(\) expects array<string, mixed>, array<int, string> given\.$/'
  42. path: tests/FixerConfiguration/FixerConfigurationResolverRootlessTest.php
  43. -
  44. message: '/^Parameter #1 \$function of function register_shutdown_function expects callable\(\): void, array\(\$this\(PhpCsFixer\\FileRemoval\), ''clean''\) given\.$/'
  45. path: src/FileRemoval.php
  46. -
  47. message: '/^Parameter #1 \$finder of method PhpCsFixer\\Config::setFinder\(\) expects iterable<string>, int given\.$/'
  48. path: tests/ConfigTest.php
  49. - # https://github.com/phpstan/phpstan/issues/1215
  50. message: '/^Strict comparison using === between false and string will always evaluate to false\.$/'
  51. path: src/Fixer/StringNotation/NoTrailingWhitespaceInStringFixer.php
  52. -
  53. message: '/^Property .*::\$indicator .* does not accept null\.$/'
  54. path: tests/Indicator/PhpUnitTestCaseIndicatorTest.php
  55. -
  56. message: '/^Constant T_ATTRIBUTE not found\.$/'
  57. path: src/Tokenizer/Transformer/AttributeTransformer.php
  58. -
  59. message: '/^\$this\(PhpCsFixer\\Tokenizer\\Tokens\) does not accept PhpCsFixer\\Tokenizer\\Token\|null\.$/'
  60. path: src/Tokenizer/Tokens.php
  61. -
  62. message: '/^Class Test\dConfig not found.$/'
  63. path: tests/Console/ConfigurationResolverTest.php
  64. tipsOfTheDay: false