forked from imiphp/imi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
60 lines (53 loc) · 1.98 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
59
60
parameters:
level: 6
phpVersion: 80000
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
treatPhpDocTypesAsCertain: false
checkGenericClassInNonGenericObjectType: false
checkMissingIterableValueType: false
reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#is never read, only written#'
- '#expects class-string<\S+>, string given#'
- '#Unable to resolve the template type T in call to method#'
- '#PHPDoc tag @return with type T\|null is not subtype of native type#'
- '#Access to an undefined property Imi\\Util\\LazyArrayObject::\$[^.]+.#'
- '#Access to an undefined property Imi\\Util\\ArrayData::\$[^.]+.#'
- '#Unsafe usage of new static\(\).+#'
- '#Argument of an invalid type Imi\\Util\\ArrayData supplied for foreach, only iterables are supported.#'
- '#Argument of an invalid type ArrayAccess supplied for foreach, only iterables are supported.#'
- '#PHPDoc tag @throws with type \S+ is not subtype of Throwable#'
- '#Imi\\Swoole\\Util\\Coroutine#'
- '#Imi\\Swoole\\Process\\Process#'
- '#IMI_PATH#'
-
message: '#Method \S+ has no return typehint specified.#'
paths:
- tests/unit/**Test.php
services:
fileFinderAnalyse:
class: Imi\Util\File\FileFinder
arguments:
fileExcluder: @fileExcluderAnalyse
fileExtensions: %fileExtensions%
autowired: false
fileFinderScan:
class: Imi\Util\File\FileFinder
arguments:
fileExcluder: @fileExcluderScan
fileExtensions: %fileExtensions%
autowired: false