forked from rectorphp/rector-doctrine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
44 lines (31 loc) · 1.52 KB
/
phpstan.neon
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
41
42
43
includes:
- vendor/symplify/phpstan-rules/config/symplify-rules.neon
parameters:
level: max
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false
paths:
- config
- src
- tests
- rules
- rules-tests
scanDirectories:
- stubs
excludePaths:
- */Source/*
- *Source/*
ignoreErrors:
# false postiive on class-strng
- '#expects class\-string, string given#'
# false positive
- '#Parameter \#1 \$tag of method Rector\\BetterPhpDocParser\\PhpDocParser\\ClassAnnotationMatcher\:\:resolveTagFullyQualifiedName\(\) expects string, string\|null given#'
-
message: '#Parameter \#1 \$phpVersion of method Rector\\Config\\RectorConfig\:\:phpVersion\(\) expects 50200\|50300\|50400\|50500\|50600\|70000\|70100\|70200\|70300\|70400\|80000\|80100\|80200\|100000, \d+ given#'
paths:
- tests/Set/DoctrineORM29Set/config/configured_set.php
# will be resolved in https://github.com/rectorphp/rector-src/pull/4999gi
- '#Property Rector\\Doctrine\\CodeQuality\\Rector\\Property\\MakeEntityDateTimePropertyDateTimeInterfaceRector\:\:\$docBlockUpdater is never read, only written#'
- '#Result of method Rector\\NodeTypeResolver\\PhpDoc\\NodeAnalyzer\\DocBlockClassRenamer\:\:renamePhpDocType\(\) \(void\) is used#'
- '#Negated boolean expression is always true#'
- '#Unreachable statement \- code above always terminates#'