-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.dist.neon
More file actions
30 lines (30 loc) · 1.59 KB
/
phpstan.dist.neon
File metadata and controls
30 lines (30 loc) · 1.59 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
# https://phpstan.org/config-reference
parameters:
level: 9
paths:
- packages
stubFiles:
- phpstan/stubs/OpenApi/Annotations.stub
- phpstan/stubs/Webman/Http.stub
excludePaths:
- tests
- runtime
- packages/debugbar/src/DataCollector/ThinkPdoCollector.php # 暂时不支持
- packages/debugbar/src/Laravel/DataCollector/QueryCollector.php # 不是自己写的
- packages/debugbar/src/Laravel/DataFormatter/QueryFormatter.php # 不是自己写的
- packages/*/src/Helper/ArrayHelper.php # 不是自己写的
- packages/swagger/src/Controller/RequiredElementsAttributes # 不需要
tmpDir: runtime/phpstan
ignoreErrors:
- identifier: missingType.iterableValue # Property XXXX type has no value type specified in iterable type array.
- identifier: cast.int # Cannot cast mixed to int.
- identifier: cast.string # Cannot cast mixed to string.
- identifier: missingType.generics # Property XXX with generic class WeakMap does not specify its types: TKey, TValue
- '#Method (.*) should return (.*) but returns mixed\.#'
- '#Parameter (.*) of method (.*) expects (.*), mixed given\.#'
- '#Parameter (.*) of static method (.*) expects (.*), mixed given\.#'
- '#Parameter (.*) of class (.*) constructor expects (.*), mixed given\.#'
- '#Property (.*) does not accept mixed\.#'
- '#Cannot access offset (.*) on mixed\.#'
- '#Possibly invalid array key type mixed\.#'
reportUnmatchedIgnoredErrors: false # 关闭 ignore 掉的错误的提示