-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
31 lines (24 loc) · 1.06 KB
/
phpstan.neon
File metadata and controls
31 lines (24 loc) · 1.06 KB
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
parameters:
treatPhpDocTypesAsCertain: false
errorFormat: symplify
level: 8
paths:
- src
- config
- tests
excludePaths:
# parallel
- packages/*-phpstan-printer/tests/*ToPhpCompiler/Fixture*
# tests
- '*/tests/**/Source/*'
- */stubs/*
- */Fixture/*
ignoreErrors:
# overly detailed
- '#Class Rector\\Mockstan\\(.*?) extends generic class PHPStan\\Testing\\RuleTestCase but does not specify its types\: TRule#'
- '#Method Rector\\Mockstan\\(.*?)\:\:getRule\(\) return type with generic interface PHPStan\\Rules\\Rule does not specify its types\: TNodeType#'
- '#Parameter \#2 \$expectedErrors of method PHPStan\\Testing\\RuleTestCase<PHPStan\\Rules\\Rule>\:\:analyse\(\) expects list<array\{0\: string, 1\: int, 2\?\: string\|null\}>, (.*?) given#'
# useful to have IDE know the types
- identifier: phpstanApi.instanceofType
# used in tests
- '#Public constant "Rector\\Mockstan\\(.*?)Rule\:\:ERROR_MESSAGE" is never used#'