forked from mugonix/imap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.neon
167 lines (134 loc) · 5.92 KB
/
phpstan-baseline.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
parameters:
ignoreErrors:
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/ImapResource.php
-
message: "#^Parameter \\#2 \\$array of function implode expects array\\<string\\>, array\\<int, Ddeboer\\\\Imap\\\\MessageInterface\\|int\\|string\\> given\\.$#"
count: 1
path: src/Mailbox.php
-
message: "#^Parameter \\#3 \\$reverse of function imap_sort expects bool, bool\\|int given\\.$#"
count: 1
path: src/Mailbox.php
-
message: "#^Call to function is_numeric\\(\\) with int will always evaluate to true\\.$#"
count: 1
path: src/Message.php
-
message: "#^Cannot call method getDecodedContent\\(\\) on mixed\\.$#"
count: 2
path: src/Message/AbstractMessage.php
-
message: "#^Cannot call method getSubtype\\(\\) on mixed\\.$#"
count: 2
path: src/Message/AbstractMessage.php
-
message: "#^Call to function base64_decode\\(\\) requires parameter \\#2 to be true\\.$#"
count: 1
path: src/Message/AbstractPart.php
-
message: "#^Method Ddeboer\\\\Imap\\\\Message\\\\AbstractPart\\:\\:getChildren\\(\\) return type with generic interface RecursiveIterator does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Message/AbstractPart.php
-
message: "#^Method Ddeboer\\\\Imap\\\\Message\\\\AbstractPart\\:\\:getChildren\\(\\) should return RecursiveIterator\\|null but returns mixed\\.$#"
count: 1
path: src/Message/AbstractPart.php
-
message: "#^Strict comparison using \\=\\=\\= between false and string will always evaluate to false\\.$#"
count: 1
path: src/Message/AbstractPart.php
-
message: "#^Interface Ddeboer\\\\Imap\\\\Message\\\\PartInterface extends generic interface RecursiveIterator but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Message/PartInterface.php
-
message: "#^Call to function is_int\\(\\) with Ddeboer\\\\Imap\\\\MessageInterface will always evaluate to false\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Call to function is_object\\(\\) with Ddeboer\\\\Imap\\\\MessageInterface will always evaluate to true\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Class ArrayIterator specifies template type TKey of interface Iterator as int but it's already specified as mixed\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Class ArrayIterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Else branch is unreachable because ternary operator condition is always true\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Interface Iterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 2
path: src/MessageIterator.php
-
message: "#^Interface SeekableIterator specifies template type TKey of interface Iterator as int but it's already specified as mixed\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Interface SeekableIterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Parameter \\#1 \\$array of method ArrayIterator\\<int,Ddeboer\\\\Imap\\\\MessageInterface\\>\\:\\:__construct\\(\\) expects array\\<int, Ddeboer\\\\Imap\\\\MessageInterface\\>, array\\<int\\> given\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Property Ddeboer\\\\Imap\\\\MessageIterator\\:\\:\\$resource is never read, only written\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/MessageIterator.php
-
message: "#^Class ArrayIterator specifies template type TKey of interface Iterator as int but it's already specified as mixed\\.$#"
count: 1
path: src/Test/RawMessageIterator.php
-
message: "#^Class ArrayIterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 1
path: src/Test/RawMessageIterator.php
-
message: "#^Interface Iterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 2
path: src/Test/RawMessageIterator.php
-
message: "#^Interface SeekableIterator specifies template type TKey of interface Iterator as int but it's already specified as mixed\\.$#"
count: 1
path: src/Test/RawMessageIterator.php
-
message: "#^Interface SeekableIterator specifies template type TKey of interface Traversable as int but it's already specified as mixed\\.$#"
count: 1
path: src/Test/RawMessageIterator.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertIsInt\\(\\) with int will always evaluate to true\\.$#"
count: 2
path: tests/ConnectionTest.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'date' and \\*NEVER\\* will always evaluate to true\\.$#"
count: 1
path: tests/MessageTest.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'from' and Ddeboer\\\\Imap\\\\Message\\\\Headers will always evaluate to false\\.$#"
count: 1
path: tests/MessageTest.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertArrayHasKey\\(\\) with 'recent' and \\*NEVER\\* will always evaluate to true\\.$#"
count: 1
path: tests/MessageTest.php
-
message: "#^Call to static method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) with 'Ddeboer\\\\\\\\Imap\\\\\\\\Message\\\\\\\\EmailAddress' and Ddeboer\\\\Imap\\\\Message\\\\EmailAddress will always evaluate to true\\.$#"
count: 2
path: tests/MessageTest.php
-
message: "#^Cannot access property \\$parts on mixed\\.$#"
count: 2
path: tests/MessageTest.php