File: phpstan.neon.dist

package info (click to toggle)
php-league-commonmark 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,260 kB
  • sloc: php: 20,378; xml: 1,988; ruby: 45; makefile: 21; javascript: 15
file content (30 lines) | stat: -rw-r--r-- 1,389 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
parameters:
  level: 8
  paths:
    - src
  ignoreErrors:
   - path: src/Reference/ReferenceParser.php
     message: '#Parameter .+ of class .+Reference constructor expects string, string\|null given#'
   - path: src/Util/RegexHelper.php
     message: '#Method .+RegexHelper::unescape\(\) should return string but returns string\|null#'
   - path: src/Delimiter/DelimiterStack.php
     message: '#unknown class WeakMap#'
  exceptions:
    uncheckedExceptionClasses:
      # Exceptions caused by bad developer logic that should always bubble up:
      - 'League\CommonMark\Exception\AlreadyInitializedException'
      - 'League\CommonMark\Exception\InvalidArgumentException'
      - 'League\CommonMark\Exception\MissingDependencyException'
      - 'League\CommonMark\Exception\UnexpectedEncodingException'
      - 'League\CommonMark\Parser\ParserLogicException'
      - 'League\CommonMark\Renderer\NoMatchingRendererException'
      - 'League\Config\Exception\InvalidConfigurationException'
      - 'League\Config\Exception\UnknownOptionException'
      - 'League\Config\Exception\ValidationException'
      # Should never be thrown by our code:
      - 'Dflydev\DotAccessData\Exception\DataException'
      - 'Dflydev\DotAccessData\Exception\InvalidPathException'
    check:
      missingCheckedExceptionInThrows: true
rules:
  - 'League\CommonMark\Tests\PHPStan\MbstringFunctionCallRule'