phpstan.neon.dist 1.4 KB

123456789101112131415161718192021222324252627282930
  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. - path: src/Delimiter/DelimiterStack.php
  11. message: '#unknown class WeakMap#'
  12. exceptions:
  13. uncheckedExceptionClasses:
  14. # Exceptions caused by bad developer logic that should always bubble up:
  15. - 'League\CommonMark\Exception\AlreadyInitializedException'
  16. - 'League\CommonMark\Exception\InvalidArgumentException'
  17. - 'League\CommonMark\Exception\MissingDependencyException'
  18. - 'League\CommonMark\Exception\UnexpectedEncodingException'
  19. - 'League\CommonMark\Parser\ParserLogicException'
  20. - 'League\CommonMark\Renderer\NoMatchingRendererException'
  21. - 'League\Config\Exception\InvalidConfigurationException'
  22. - 'League\Config\Exception\UnknownOptionException'
  23. - 'League\Config\Exception\ValidationException'
  24. # Should never be thrown by our code:
  25. - 'Dflydev\DotAccessData\Exception\DataException'
  26. - 'Dflydev\DotAccessData\Exception\InvalidPathException'
  27. check:
  28. missingCheckedExceptionInThrows: true
  29. rules:
  30. - 'League\CommonMark\Tests\PHPStan\MbstringFunctionCallRule'