-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpstan.neon
252 lines (202 loc) · 8.81 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/phpstan/phpstan-nette/extension.neon
- vendor/phpstan/phpstan-nette/rules.neon
- vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
treatPhpDocTypesAsCertain: false
ignoreErrors:
- "#^Call to deprecated function mcrypt(.*)\\(\\)\\.$#"
- "#^Call to deprecated function mdecrypt(.*)\\(\\)\\.$#"
-
message: "#^Parameter \\#1 \\$td of function mcrypt_enc_get_iv_size expects resource, resource\\|false given\\.$#"
count: 2
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mcrypt_enc_get_key_size expects resource, resource\\|false given\\.$#"
count: 2
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mcrypt_generic expects resource, resource\\|false given\\.$#"
count: 1
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mcrypt_generic_deinit expects resource, resource\\|false given\\.$#"
count: 2
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mcrypt_generic_init expects resource, resource\\|false given\\.$#"
count: 2
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mcrypt_module_close expects resource, resource\\|false given\\.$#"
count: 2
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$td of function mdecrypt_generic expects resource, resource\\|false given\\.$#"
count: 1
path: src/Crypt/MCrypt.php
-
message: "#^Parameter \\#1 \\$data of function bin2hex expects string, string\\|false given\\.$#"
count: 1
path: src/Crypt/OpenSSL.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, string\\|false given\\.$#"
count: 1
path: src/Crypt/OpenSSL.php
-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 1
path: src/GopayHTTP.php
-
message: "#^Casting to float something that's already float\\.$#"
count: 2
path: src/GopayHelper.php
-
message: "#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#"
count: 5
path: src/GopayHelper.php
-
message: "#^Else branch is unreachable because previous condition is always true\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castBooleanForWS\\(\\) should return int but returns string\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castString2Boolean\\(\\) should return bool but returns string\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:convert\\(\\) should return string but returns false\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:createPaymentForm\\(\\) has parameter \\$defaultPaymentChannel with no value type specified in iterable type array\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:createPaymentForm\\(\\) has parameter \\$paymentChannels with no value type specified in iterable type array\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:createPaymentHref\\(\\) has parameter \\$defaultPaymentChannel with no value type specified in iterable type array\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:createPaymentHref\\(\\) has parameter \\$paymentChannels with no value type specified in iterable type array\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Only booleans are allowed in \\|\\|, int\\|false given on the right side\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$ascii of function chr expects int, float\\|int given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$boolean of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castBooleanForWS\\(\\) expects bool, int given\\.$#"
count: 4
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$data of function bin2hex expects string, string\\|false given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$input of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castString2Boolean\\(\\) expects string, bool given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, array given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$str of function trim expects string, int given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#1 \\$str of function urlencode expects string, array given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#2 \\$result of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatPaymentResult\\(\\) expects string, float given\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Parameter \\#8 \\$preAuthorization of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatPaymentCommand\\(\\) expects int, bool given\\.$#"
count: 2
path: src/GopayHelper.php
-
message: "#^Parameter \\#9 \\$recurrentPayment of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatPaymentCommand\\(\\) expects int, bool given\\.$#"
count: 2
path: src/GopayHelper.php
-
message: "#^Static call to instance method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castBoolean2String\\(\\)\\.$#"
count: 4
path: src/GopayHelper.php
-
message: "#^Strict comparison using \\=\\=\\= between true and true will always evaluate to true\\.$#"
count: 1
path: src/GopayHelper.php
-
message: "#^Call to deprecated method __call\\(\\) of class SoapClient\\.$#"
count: 10
path: src/GopaySoap.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:isPaymentDone\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:isPaymentDoneWCust\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:paymentMethodList\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Parameter \\#1 \\$input of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:castString2Boolean\\(\\) expects string, bool given\\.$#"
count: 2
path: src/GopaySoap.php
-
message: "#^Parameter \\#10 \\$recurrenceDateTo of static method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:createBasePayment\\(\\) expects string, null given\\.$#"
count: 2
path: src/GopaySoap.php
-
message: "#^Parameter \\#11 \\$recurrenceCycle of static method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:createBasePayment\\(\\) expects string, null given\\.$#"
count: 2
path: src/GopaySoap.php
-
message: "#^Parameter \\#12 \\$recurrencePeriod of static method Markette\\\\Gopay\\\\Api\\\\GopaySoap\\:\\:createBasePayment\\(\\) expects int, null given\\.$#"
count: 2
path: src/GopaySoap.php
-
message: "#^Parameter \\#2 \\$orderNumber of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatRecurrenceRequest\\(\\) expects string, int given\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Parameter \\#3 \\$amount of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatRefundRequest\\(\\) expects string, float given\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Parameter \\#4 \\$orderNumber of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:checkPaymentStatus\\(\\) expects string, int given\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Parameter \\#8 \\$preAuthorization of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatPaymentCommand\\(\\) expects int, bool given\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Parameter \\#9 \\$recurrentPayment of static method Markette\\\\Gopay\\\\Api\\\\GopayHelper\\:\\:concatPaymentCommand\\(\\) expects int, bool given\\.$#"
count: 1
path: src/GopaySoap.php
-
message: "#^Method Markette\\\\Gopay\\\\Api\\\\PaymentMethods\\:\\:adapt\\(\\) has parameter \\$paymentMethodsWS with no value type specified in iterable type array\\.$#"
count: 1
path: src/PaymentMethods.php
-
message: "#^Property Markette\\\\Gopay\\\\Api\\\\PaymentMethods\\:\\:\\$paymentMethods type has no value type specified in iterable type array\\.$#"
count: 1
path: src/PaymentMethods.php