phpstan.neon 1.3 KB

123456789101112131415161718192021222324252627282930313233
  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. excludePaths:
  11. - src/Event/Event.php # @TODO remove in PHP CS Fixer 3.0
  12. - tests/Event/EventTest.php # @TODO remove in PHP CS Fixer 3.0
  13. - tests/Fixtures
  14. ignoreErrors:
  15. - '/^Return typehint of method PhpCsFixer\\Tests\\Test\\.+::createIsIdenticalStringConstraint\(\) has invalid type PHPUnit_Framework_Constraint_IsIdentical\.$/'
  16. -
  17. message: '/^Unsafe usage of new static\(\)\.$/'
  18. path: src/Config.php
  19. -
  20. message: '/^Result of && is always false\.$/'
  21. path: src/Config.php
  22. -
  23. message: '/^Strict comparison using === between false and true will always evaluate to false\.$/'
  24. path: src/Config.php
  25. -
  26. message: '/^Else branch is unreachable because ternary operator condition is always true\.$/'
  27. path: src/Config.php
  28. -
  29. message: '/^Dead catch - LogicException is never thrown in the try block\.$/'
  30. path: src/Test/AccessibleObject.php
  31. tipsOfTheDay: false