-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon.dist
40 lines (33 loc) · 1.4 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
29
30
31
32
33
34
35
36
37
38
39
40
includes:
- extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
parameters:
level: 10
paths:
- src
- tests
excludePaths:
- tests/data/
checkUninitializedProperties: true
checkMissingCallableSignature: true
reportUnmatchedIgnoredErrors: false
ignoreErrors:
# Skip check dataProvider return type
-
message: '#Test::data[a-zA-Z0-9_]+\(\) return type has no value type specified in iterable type#'
path: tests/
# This uses internal code that is not covered by backward compatibility promise, but only acceptable for testing.
-
message: '#is not covered by backward compatibility promise. The (method|class) might change in a minor PHPStan version.#'
path: tests/
# Support for php-console-highlighter < 1.0
-
message: '#Property Yamadashy\\PhpStanFriendlyFormatter\\CodeHighlighter::\$highlighter has unknown class (PHP_Parallel_Lint|JakubOnderka)\\PhpConsoleHighlighter\\Highlighter as its type.#'
path: src/CodeHighlighter.php
-
message: '#Call to method getCodeSnippet\(\) on an unknown class (PHP_Parallel_Lint|JakubOnderka)\\PhpConsoleHighlighter\\Highlighter.#'
path: src/CodeHighlighter.php
friendly:
lineBefore: 2
lineAfter: 2