forked from imiphp/imi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
58 lines (50 loc) · 1.66 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
parameters:
level: 6
phpVersion: 80100
paths:
- src
- tests
- config
- dev
- split-repository
excludePaths:
- */vendor/*
- src/Components
- src/Config/DotEnv/EntryParser.php
- src/Config/DotEnv/Parser.php
- src/Util/File/FileFinder.php
bootstrapFiles:
- vendor/autoload.php
- split-repository/vendor/autoload.php
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
resultCachePath: %tmpDir%/resultCache-imi-3-core.php
ignoreErrors:
-
message: '#expects class-string<\S+>, string given#'
reportUnmatched: true
-
message: '#Unable to resolve the template type T in call to method#'
reportUnmatched: true
-
message: '#Access to an undefined property Imi\\Util\\LazyArrayObject::\$[^.]+.#'
path: 'tests/unit/Component/Tests/*'
reportUnmatched: true
-
message: '#Access to an undefined property Imi\\Util\\ArrayData::\$[^.]+.#'
path: 'tests/unit/Component/Tests/*'
reportUnmatched: true
-
message: '#Unsafe usage of new static\(\).+#'
reportUnmatched: true
-
message: '#Constant IMI_PATH not found#'
reportUnmatched: true
# 用 __call() 实现,并且在类注释中使用 phpdoc 声明方法
-
message: '#Creating callable from a non-native method#'
reportUnmatched: true
services:
includes:
- phpstan-baseline/baseline-core.neon