-
-
Notifications
You must be signed in to change notification settings - Fork 194
/
phpstan.neon.dist
28 lines (28 loc) · 1.27 KB
/
phpstan.neon.dist
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
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#'
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'