-
Notifications
You must be signed in to change notification settings - Fork 83
/
phpstan-baseline.php
113 lines (111 loc) · 5.65 KB
/
phpstan-baseline.php
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
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:filterAndroidBackgroundLayout\\(\\) has parameter \\$layouts with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:filterIosAttachments\\(\\) has parameter \\$attachments with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:filterWebButtons\\(\\) has parameter \\$buttons with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:normalizeButtons\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:normalizeButtons\\(\\) return type has no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:normalizeFilters\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\NotificationResolver\\:\\:normalizeFilters\\(\\) return type has no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/NotificationResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\SegmentResolver\\:\\:normalizeFilters\\(\\) has parameter \\$values with no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/SegmentResolver.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method OneSignal\\\\Resolver\\\\SegmentResolver\\:\\:normalizeFilters\\(\\) return type has no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Resolver/SegmentResolver.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$success of class OneSignal\\\\Response\\\\Segment\\\\CreateSegmentResponse constructor expects bool, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/CreateSegmentResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$id of class OneSignal\\\\Response\\\\Segment\\\\CreateSegmentResponse constructor expects non\\-empty\\-string, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/CreateSegmentResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$success of class OneSignal\\\\Response\\\\Segment\\\\DeleteSegmentResponse constructor expects bool, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/DeleteSegmentResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(mixed\\)\\: mixed\\)\\|null, Closure\\(array\\)\\: OneSignal\\\\Response\\\\Segment\\\\Segment given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#1 \\$totalCount of class OneSignal\\\\Response\\\\Segment\\\\ListSegmentsResponse constructor expects int\\<0, max\\>, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$array of function array_map expects array, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#2 \\$offset of class OneSignal\\\\Response\\\\Segment\\\\ListSegmentsResponse constructor expects int\\<0, 2147483648\\>, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#3 \\$limit of class OneSignal\\\\Response\\\\Segment\\\\ListSegmentsResponse constructor expects int\\<0, 2147483648\\>, mixed given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
$ignoreErrors[] = [
// identifier: argument.type
'message' => '#^Parameter \\#4 \\$segments of class OneSignal\\\\Response\\\\Segment\\\\ListSegmentsResponse constructor expects list\\<OneSignal\\\\Response\\\\Segment\\\\Segment\\>, array\\<OneSignal\\\\Response\\\\Segment\\\\Segment\\> given\\.$#',
'count' => 1,
'path' => __DIR__ . '/src/Response/Segment/ListSegmentsResponse.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];