Repository navigation
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
571 lines (477 loc) · 24.3 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
571 lines (477 loc) · 24.3 KB
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
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
parameters:
ignoreErrors:
-
message: '#^Parameter \#3 \$subject of function str_replace expects array\<string\>\|string, int given\.$#'
identifier: argument.type
count: 1
path: src/Commands/AdminCommands/ChatsCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Commands/AdminCommands/ChatsCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Commands/AdminCommands/CleanupCommand.php
-
message: '#^PHPDoc tag @return with type mixed is not subtype of native type Longman\\TelegramBot\\Entities\\ServerResponse\.$#'
identifier: return.phpDocType
count: 1
path: src/Commands/AdminCommands/DebugCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Commands/AdminCommands/DebugCommand.php
-
message: '#^PHPDoc tag @return with type mixed is not subtype of native type Longman\\TelegramBot\\Entities\\ServerResponse\.$#'
identifier: return.phpDocType
count: 2
path: src/Commands/AdminCommands/SendtochannelCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 2
path: src/Commands/AdminCommands/SendtochannelCommand.php
-
message: '#^Variable \$result might not be defined\.$#'
identifier: variable.undefined
count: 1
path: src/Commands/AdminCommands/SendtochannelCommand.php
-
message: '#^Strict comparison using \!\=\= between string and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Commands/AdminCommands/WhoisCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Commands/AdminCommands/WhoisCommand.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 4
path: src/Commands/Command.php
-
message: '#^Method Longman\\TelegramBot\\Commands\\Command\:\:__call\(\) should return Longman\\TelegramBot\\Commands\\Command but returns null\.$#'
identifier: return.type
count: 1
path: src/Commands/Command.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 4
path: src/Commands/Command.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 3
path: src/Commands/Command.php
-
message: '#^Result of \|\| is always false\.$#'
identifier: booleanOr.alwaysFalse
count: 1
path: src/Commands/SystemCommand.php
-
message: '#^Strict comparison using \=\=\= between Longman\\TelegramBot\\Entities\\Chat and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Commands/SystemCommand.php
-
message: '#^Strict comparison using \=\=\= between Longman\\TelegramBot\\Entities\\Message and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 2
path: src/Commands/SystemCommand.php
-
message: '#^Strict comparison using \=\=\= between Longman\\TelegramBot\\Entities\\User and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Commands/SystemCommand.php
-
message: '#^Strict comparison using \=\=\= between array\<Longman\\TelegramBot\\Entities\\PhotoSize\|Longman\\TelegramBot\\Entities\\User\>\|bool\|int\|Longman\\TelegramBot\\Entities\\Message\\MaybeInaccessibleMessage\|Longman\\TelegramBot\\Entities\\Payments\\SuccessfulPayment\|Longman\\TelegramBot\\Entities\\User\|string and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Commands/SystemCommand.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 2
path: src/Commands/SystemCommand.php
-
message: '#^PHPDoc tag @return with type mixed is not subtype of native type Longman\\TelegramBot\\Entities\\ServerResponse\.$#'
identifier: return.phpDocType
count: 1
path: src/Commands/SystemCommands/InlinequeryCommand.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 23
path: src/DB.php
-
message: '#^Instanceof between Longman\\TelegramBot\\Entities\\User and Longman\\TelegramBot\\Entities\\User will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/DB.php
-
message: '#^Left side of && is always true\.$#'
identifier: booleanAnd.leftAlwaysTrue
count: 18
path: src/DB.php
-
message: '#^Parameter \#1 \$edited_message of static method Longman\\TelegramBot\\DB\:\:insertEditedMessageRequest\(\) expects Longman\\TelegramBot\\Entities\\Message, Longman\\TelegramBot\\Entities\\Message\\MaybeInaccessibleMessage given\.$#'
identifier: argument.type
count: 1
path: src/DB.php
-
message: '#^Parameter \#1 \$message of static method Longman\\TelegramBot\\DB\:\:insertMessageRequest\(\) expects Longman\\TelegramBot\\Entities\\Message, Longman\\TelegramBot\\Entities\\Message\\MaybeInaccessibleMessage given\.$#'
identifier: argument.type
count: 1
path: src/DB.php
-
message: '#^Strict comparison using \!\=\= between int and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/DB.php
-
message: '#^Strict comparison using \=\=\= between PDO and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/DB.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 2
path: src/DB.php
-
message: '#^Access to an undefined property Longman\\TelegramBot\\Entities\\Chat\:\:\$type\.$#'
identifier: property.notFound
count: 2
path: src/Entities/Chat.php
-
message: '#^PHPDoc tag @property has invalid value \(string type Type of chat, can be either "private ", "group", "supergroup" or "channel"\)\: Unexpected token "type", expected variable at offset 113 on line 6$#'
identifier: phpDoc.parseError
count: 1
path: src/Entities/Chat.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ChatBoost\:\:getSource\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\ChatBoostSource\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ChatBoost.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ChatBoostRemoved\:\:getSource\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\ChatBoostSource\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ChatBoostRemoved.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\Game not found\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\Giveaway not found\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\GiveawayWinners not found\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\Invoice not found\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\MessageOrigin not found\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ExternalReplyInfo\:\:getGame\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\Game\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ExternalReplyInfo\:\:getGiveaway\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\Giveaway\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ExternalReplyInfo\:\:getGiveawayWinners\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\GiveawayWinners\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ExternalReplyInfo\:\:getInvoice\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\Invoice\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\ExternalReplyInfo\:\:getOrigin\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\MessageOrigin\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ExternalReplyInfo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultAudio\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultAudio.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedAudio\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedAudio.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedDocument\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedDocument.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedGif\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedGif.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedMpeg4Gif\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedMpeg4Gif.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedPhoto\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedPhoto.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedVideo\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedVideo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultCachedVoice\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultCachedVoice.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultDocument\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultDocument.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultGif\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultGif.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultMpeg4Gif\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultMpeg4Gif.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultPhoto\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultPhoto.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultVideo\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultVideo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InlineQuery\\InlineQueryResultVoice\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InlineQuery\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InlineQuery/InlineQueryResultVoice.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMedia\\InputMediaAnimation\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMedia\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMedia/InputMediaAnimation.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMedia\\InputMediaAudio\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMedia\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMedia/InputMediaAudio.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMedia\\InputMediaDocument\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMedia\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMedia/InputMediaDocument.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMedia\\InputMediaPhoto\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMedia\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMedia/InputMediaPhoto.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMedia\\InputMediaVideo\:\:getCaptionEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMedia\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMedia/InputMediaVideo.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMessageContent\\InputInvoiceMessageContent\:\:getPrices\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMessageContent\\LabeledPrice\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMessageContent/InputInvoiceMessageContent.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMessageContent\\InputInvoiceMessageContent\:\:setPrices\(\) parameter \#1 \$prices contains unknown class Longman\\TelegramBot\\Entities\\InputMessageContent\\LabeledPrice\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMessageContent/InputInvoiceMessageContent.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMessageContent\\InputTextMessageContent\:\:getEntities\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMessageContent\\MessageEntity\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMessageContent/InputTextMessageContent.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMessageContent\\InputTextMessageContent\:\:getLinkPreviewOptions\(\) return type contains unknown class Longman\\TelegramBot\\Entities\\InputMessageContent\\LinkPreviewOptions\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMessageContent/InputTextMessageContent.php
-
message: '#^PHPDoc tag @method for method Longman\\TelegramBot\\Entities\\InputMessageContent\\InputTextMessageContent\:\:setLinkPreviewOptions\(\) parameter \#1 \$link_preview_options contains unknown class Longman\\TelegramBot\\Entities\\InputMessageContent\\LinkPreviewOptions\.$#'
identifier: class.notFound
count: 1
path: src/Entities/InputMessageContent/InputTextMessageContent.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 2
path: src/Entities/Keyboard.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\MenuButton\\MenuButtonCommands constructor invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Entities/MenuButton/Factory.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\MenuButton\\MenuButtonDefault constructor invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Entities/MenuButton/Factory.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\MenuButton\\MenuButtonWebApp constructor invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Entities/MenuButton/Factory.php
-
message: '#^Instanceof between Longman\\TelegramBot\\Entities\\User and Longman\\TelegramBot\\Entities\\User will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Entities/Message.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\ReactionType\\ReactionTypeCustomEmoji constructor invoked with 2 parameters, 0\-1 required\.$#'
identifier: arguments.count
count: 1
path: src/Entities/ReactionType/Factory.php
-
message: '#^Class Longman\\TelegramBot\\Entities\\ReactionType\\ReactionTypeEmoji constructor invoked with 2 parameters, 0\-1 required\.$#'
identifier: arguments.count
count: 1
path: src/Entities/ReactionType/Factory.php
-
message: '#^Method Longman\\TelegramBot\\Entities\\ServerResponse\:\:createResultObject\(\) has invalid return type Longman\\TelegramBot\\Entities\\MenuButton\.$#'
identifier: class.notFound
count: 1
path: src/Entities/ServerResponse.php
-
message: '#^Method Longman\\TelegramBot\\Entities\\ServerResponse\:\:createResultObjects\(\) should return array\<Longman\\TelegramBot\\Entities\\BotCommand\|Longman\\TelegramBot\\Entities\\ChatMember\\ChatMember\|Longman\\TelegramBot\\Entities\\Games\\GameHighScore\|Longman\\TelegramBot\\Entities\\Message\|Longman\\TelegramBot\\Entities\\Sticker\|Longman\\TelegramBot\\Entities\\Update\> but returns list\<Longman\\TelegramBot\\Entities\\Entity\>\.$#'
identifier: return.type
count: 1
path: src/Entities/ServerResponse.php
-
message: '#^PHPDoc tag @return with type Longman\\TelegramBot\\Entities\\BotDescription\|Longman\\TelegramBot\\Entities\\BotName\|Longman\\TelegramBot\\Entities\\BotShortDescription\|Longman\\TelegramBot\\Entities\\Chat\|Longman\\TelegramBot\\Entities\\ChatAdministratorRights\|Longman\\TelegramBot\\Entities\\ChatMember\\ChatMember\|Longman\\TelegramBot\\Entities\\File\|Longman\\TelegramBot\\Entities\\MenuButton\|Longman\\TelegramBot\\Entities\\Message\|Longman\\TelegramBot\\Entities\\Poll\|Longman\\TelegramBot\\Entities\\SentWebAppMessage\|Longman\\TelegramBot\\Entities\\StickerSet\|Longman\\TelegramBot\\Entities\\User\|Longman\\TelegramBot\\Entities\\UserProfilePhotos\|Longman\\TelegramBot\\Entities\\WebhookInfo is not subtype of native type Longman\\TelegramBot\\Entities\\Entity\.$#'
identifier: return.phpDocType
count: 1
path: src/Entities/ServerResponse.php
-
message: '#^Method Longman\\TelegramBot\\Entities\\Update\:\:getUpdateContent\(\) should return Longman\\TelegramBot\\Entities\\CallbackQuery\|Longman\\TelegramBot\\Entities\\ChatBoostRemoved\|Longman\\TelegramBot\\Entities\\ChatBoostUpdated\|Longman\\TelegramBot\\Entities\\ChatJoinRequest\|Longman\\TelegramBot\\Entities\\ChatMemberUpdated\|Longman\\TelegramBot\\Entities\\ChosenInlineResult\|Longman\\TelegramBot\\Entities\\InlineQuery\|Longman\\TelegramBot\\Entities\\Message\|Longman\\TelegramBot\\Entities\\MessageReactionCountUpdated\|Longman\\TelegramBot\\Entities\\MessageReactionUpdated\|Longman\\TelegramBot\\Entities\\Payments\\PreCheckoutQuery\|Longman\\TelegramBot\\Entities\\Payments\\ShippingQuery\|Longman\\TelegramBot\\Entities\\Poll\|Longman\\TelegramBot\\Entities\\PollAnswer but returns null\.$#'
identifier: return.type
count: 1
path: src/Entities/Update.php
-
message: '#^Access to an undefined property Longman\\TelegramBot\\Entities\\InputMedia\\InputMedia\:\:\$media\.$#'
identifier: property.notFound
count: 1
path: src/Request.php
-
message: '#^Access to an undefined property Longman\\TelegramBot\\Entities\\InputMedia\\InputMedia\:\:\$raw_data\.$#'
identifier: property.notFound
count: 1
path: src/Request.php
-
message: '#^Access to an undefined property Longman\\TelegramBot\\Entities\\InputMedia\\InputMedia\:\:\$thumbnail\.$#'
identifier: property.notFound
count: 1
path: src/Request.php
-
message: '#^Call to an undefined method GuzzleHttp\\ClientInterface\:\:get\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Request.php
-
message: '#^Call to an undefined method GuzzleHttp\\ClientInterface\:\:post\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Request.php
-
message: '#^Call to an undefined method Longman\\TelegramBot\\Entities\\InputMedia\\InputMedia\:\:getMedia\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Request.php
-
message: '#^Call to an undefined method Longman\\TelegramBot\\Entities\\InputMedia\\InputMedia\:\:getThumbnail\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Request.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 1
path: src/Request.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/Request.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Request.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: src/Request.php
-
message: '#^Call to function is_callable\(\) with callable\(\)\: mixed will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Telegram.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 3
path: src/Telegram.php
-
message: '#^Parameter \#2 \$id of static method Longman\\TelegramBot\\DB\:\:selectTelegramUpdate\(\) expects string, int given\.$#'
identifier: argument.type
count: 1
path: src/Telegram.php
-
message: '#^Right side of && is always true\.$#'
identifier: booleanAnd.rightAlwaysTrue
count: 1
path: src/Telegram.php
-
message: '#^Strict comparison using \!\=\= between Longman\\TelegramBot\\Entities\\CallbackQuery\|Longman\\TelegramBot\\Entities\\ChosenInlineResult\|Longman\\TelegramBot\\Entities\\InlineQuery\|Longman\\TelegramBot\\Entities\\Message and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Telegram.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: src/Telegram.php