-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
96 lines (76 loc) · 5.8 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
parameters:
checkMissingIterableValueType: true
checkGenericClassInNonGenericObjectType: true
# reportUnmatchedIgnoredErrors: false
ignoreErrors:
- '#Result of \|\| is always true.#'
- '#Unsafe usage of new static\(\)#'
# types
- '#Parameter \#1 ...\$values of static method MF\\Collection\\Immutable\\Generic\\ListCollection<TValue>::of\(\) expects TValue, \$this\(MF\\Collection\\Immutable\\Generic\\ListCollection<TValue>\) given#'
- '#Parameter \#1 ...\$args of static method MF\\Collection\\Immutable\\Generic\\Seq<TValue>::of\(\) expects TValue, static\(MF\\Collection\\Immutable\\Generic\\Seq<TValue>\) given#'
#- '#.*PHPDoc tag @return has invalid value.*#'
- '#Parameter \#2 \$callback of function usort expects .*? given.#'
- '#Parameter \#1 \$iterable of static method MF\\Collection\\Immutable\\Generic\\Seq<TValue>::init\(\) expects \(.*?, Closure\(\): Generator<int, MF\\Collection\\.*?> given#'
# List
-
message: '#Cannot call method add\(\) on mixed.*#'
count: 1
path: src/Immutable/Generic/ListCollection.php
-
message: "#^Method MF\\\\Collection\\\\Immutable\\\\Generic\\\\ListCollection\\:\\:groupBy\\(\\) should return MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<MF\\\\Collection\\\\Immutable\\\\Generic\\\\KVPair\\<TGroup of int\\|string, MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<TValue\\>\\>\\> but returns MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<MF\\\\Collection\\\\Immutable\\\\Generic\\\\KVPair\\<TGroup of int\\|string, MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<TValue\\>\\>\\>\\>\\.$#"
count: 1
path: src/Immutable/Generic/ListCollection.php
-
message: "#^Parameter \\#1 \\$reducer of method MF\\\\Collection\\\\Immutable\\\\Generic\\\\ListCollection\\<TValue\\>\\:\\:reduce\\(\\) expects callable\\(MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\>, TValue, int\\=, MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<TValue\\>\\=\\)\\: MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\>, Closure\\(MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap, mixed, int\\)\\: MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\> given\\.$#"
count: 1
path: src/Immutable/Generic/ListCollection.php
-
message: "#^Parameter \\#1 \\$reducer of method MF\\\\Collection\\\\Immutable\\\\Generic\\\\ListCollection\\<TValue\\>\\:\\:reduce\\(\\) expects callable\\(float\\|int, TValue, int\\=, MF\\\\Collection\\\\Immutable\\\\Generic\\\\IList\\<TValue\\>\\=\\)\\: \\(float\\|int\\), Closure\\(float\\|int, mixed, int\\)\\: \\(float\\|int\\) given\\.$#"
count: 1
path: src/Immutable/Generic/ListCollection.php
-
message: "#^Parameter \\#1 \\$reducer of method MF\\\\Collection\\\\Mutable\\\\Generic\\\\ListCollection\\<TValue\\>\\:\\:reduce\\(\\) expects callable\\(MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\>, TValue, int\\=, MF\\\\Collection\\\\Mutable\\\\Generic\\\\IList\\<TValue\\>\\=\\)\\: MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\>, Closure\\(MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap, mixed, int\\)\\: MF\\\\Collection\\\\Immutable\\\\Generic\\\\IMap\\<int\\|string, mixed\\> given\\.$#"
count: 1
path: src/Mutable/Generic/ListCollection.php
-
message: "#^Parameter \\#1 \\$reducer of method MF\\\\Collection\\\\Mutable\\\\Generic\\\\ListCollection\\<TValue\\>\\:\\:reduce\\(\\) expects callable\\(float\\|int, TValue, int\\=, MF\\\\Collection\\\\Mutable\\\\Generic\\\\IList\\<TValue\\>\\=\\)\\: \\(float\\|int\\), Closure\\(float\\|int, mixed, int\\)\\: \\(float\\|int\\) given\\.$#"
count: 1
path: src/Mutable/Generic/ListCollection.php
# Tuple
-
message: '#Parameter \#1 \$callback of method MF\\Collection\\Immutable\\Generic\\ISeq<mixed>::map\(\) expects callable\(mixed\): string, Closure\(string\): string given.#'
count: 3
path: src/Immutable/Tuple.php
-
message: "#^Parameter \\#1 \\$reducer of method MF\\\\Collection\\\\Immutable\\\\Generic\\\\ISeq\\<mixed\\>\\:\\:reduce\\(\\) expects callable\\(array, mixed, int\\=, MF\\\\Collection\\\\Immutable\\\\Generic\\\\ISeq\\<mixed\\>\\=\\)\\: array, Closure\\(array, string\\)\\: array given\\.$#"
count: 1
path: src/Immutable/Tuple.php
# Seq
-
message: '#Parameter \#1 \$modifier of method MF\\Collection\\Immutable\\Generic\\Seq<TValue>::.*?\(\) expects .*?: .*? given.#'
count: 4
path: src/Immutable/Generic/Seq.php
-
message: '#Parameter \#3 \$index of method MF\\Collection\\Immutable\\Generic\\Seq<TValue>::mapiValue\(\) expects int, mixed given.#'
count: 2
path: src/Immutable/Generic/Seq.php
-
message: "#Trying to invoke mixed but it's not a callable.#"
count: 2
path: src/Immutable/Generic/Seq.php
-
message: '#Parameter \#1 \$callback of function call_user_func expects callable\(\): mixed, mixed given.#'
count: 2
path: src/Immutable/Generic/Seq.php
-
message: '#Cannot cast mixed to int.#'
count: 1
path: src/Immutable/Generic/Seq.php
-
message: '#Generator expects key type int, mixed given.#'
count: 2
path: src/Immutable/Generic/Seq.php
-
message: '#Cannot call method append\(\) on mixed.#'
count: 1
path: src/Immutable/Generic/Seq.php