phpstan.neon.dist 1.3 KB

12345678910111213141516171819202122232425262728
  1. parameters:
  2. level: 8
  3. paths:
  4. - src
  5. ignoreErrors:
  6. - path: src/Reference/ReferenceParser.php
  7. message: '#Parameter .+ of class .+Reference constructor expects string, string\|null given#'
  8. - path: src/Util/RegexHelper.php
  9. message: '#Method .+RegexHelper::unescape\(\) should return string but returns string\|null#'
  10. exceptions:
  11. uncheckedExceptionClasses:
  12. # Exceptions caused by bad developer logic that should always bubble up:
  13. - 'League\CommonMark\Exception\AlreadyInitializedException'
  14. - 'League\CommonMark\Exception\InvalidArgumentException'
  15. - 'League\CommonMark\Exception\MissingDependencyException'
  16. - 'League\CommonMark\Exception\UnexpectedEncodingException'
  17. - 'League\CommonMark\Parser\ParserLogicException'
  18. - 'League\CommonMark\Renderer\NoMatchingRendererException'
  19. - 'League\Config\Exception\InvalidConfigurationException'
  20. - 'League\Config\Exception\UnknownOptionException'
  21. - 'League\Config\Exception\ValidationException'
  22. # Should never be thrown by our code:
  23. - 'Dflydev\DotAccessData\Exception\DataException'
  24. - 'Dflydev\DotAccessData\Exception\InvalidPathException'
  25. check:
  26. missingCheckedExceptionInThrows: true
  27. rules:
  28. - 'League\CommonMark\Tests\PHPStan\MbstringFunctionCallRule'