phpstan.neon 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: '/^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. -
  34. message: '/^Parameter #1 \$function of function register_shutdown_function expects callable\(\): void, array\(\$this\(PhpCsFixer\\FileRemoval\), ''clean''\) given\.$/'
  35. path: src/FileRemoval.php
  36. -
  37. message: '/^Constant T_ATTRIBUTE not found\.$/'
  38. path: src/Tokenizer/Transformer/AttributeTransformer.php
  39. tipsOfTheDay: false