-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.php
More file actions
203 lines (201 loc) · 10.3 KB
/
phpstan-baseline.php
File metadata and controls
203 lines (201 loc) · 10.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
<?php declare(strict_types = 1);
$ignoreErrors = [];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\ChangeCourseCapacity\\\\ChangeCourseCapacity\\:\\:onCourseCapacityChangedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/ChangeCourseCapacity/ChangeCourseCapacity.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\ChangeCourseCapacity\\\\ChangeCourseCapacity\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/ChangeCourseCapacity/ChangeCourseCapacity.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\Course\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/Course/Course.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\Course\\:\\:onCourseRenamedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/Course/Course.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\Student\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/Student/Student.php',
];
$ignoreErrors[] = [
'message' => '#^Property Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\Student\\:\\:\\$studentId is never read, only written\\.$#',
'identifier' => 'property.onlyWritten',
'count' => 1,
'path' => __DIR__ . '/src/Domain/Student/Student.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\SubscribeStudentToCourse\\\\SubscribeStudentToCourse\\:\\:onCourseCapacityChangedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/SubscribeStudentToCourse/SubscribeStudentToCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\SubscribeStudentToCourse\\\\SubscribeStudentToCourse\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/SubscribeStudentToCourse/SubscribeStudentToCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\SubscribeStudentToCourse\\\\SubscribeStudentToCourse\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/SubscribeStudentToCourse/SubscribeStudentToCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\SubscribeStudentToCourse\\\\SubscribeStudentToCourse\\:\\:onStudentSubscribedToCourseEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/SubscribeStudentToCourse/SubscribeStudentToCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\SubscribeStudentToCourse\\\\SubscribeStudentToCourse\\:\\:onStudentUnsubscribedFromCourseEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/SubscribeStudentToCourse/SubscribeStudentToCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\UnsubscribeStudentFromCourse\\\\UnsubscribeStudentFromCourse\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/UnsubscribeStudentFromCourse/UnsubscribeStudentFromCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\UnsubscribeStudentFromCourse\\\\UnsubscribeStudentFromCourse\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/UnsubscribeStudentFromCourse/UnsubscribeStudentFromCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\UnsubscribeStudentFromCourse\\\\UnsubscribeStudentFromCourse\\:\\:onStudentSubscribedToCourseEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/UnsubscribeStudentFromCourse/UnsubscribeStudentFromCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\UnsubscribeStudentFromCourse\\\\UnsubscribeStudentFromCourse\\:\\:onStudentUnsubscribedFromCourseEvent\\(\\) is unused\\.$#',
'identifier' => 'method.unused',
'count' => 1,
'path' => __DIR__ . '/src/Domain/UnsubscribeStudentFromCourse/UnsubscribeStudentFromCourse.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between \'Course capacity…\' and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Cannot cast mixed to int\\.$#',
'identifier' => 'cast.int',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$id of class Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\CourseId constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Cannot cast mixed to int\\.$#',
'identifier' => 'cast.int',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/CreateCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$name of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\CreateCourseCommand constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/CreateCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between \'Course renamed to \' and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$courseId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\RenameCourseCommand constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#2 \\$name of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\RenameCourseCommand constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Cannot cast mixed to int\\.$#',
'identifier' => 'cast.int',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/DemoRunCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$min \\(0\\) of function random_int expects lower number than parameter \\#2 \\$max \\(int\\<\\-1, max\\>\\)\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/DemoRunCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between \'Student \\# \' and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between non\\-falsy\\-string and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$id of class Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\CourseId constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$id of class Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\StudentId constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between \'Student \\# \' and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Binary operation "\\." between non\\-falsy\\-string and mixed results in an error\\.$#',
'identifier' => 'binaryOp.invalid',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$id of class Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\CourseId constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
];
$ignoreErrors[] = [
'message' => '#^Parameter \\#1 \\$id of class Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\StudentId constructor expects string, mixed given\\.$#',
'identifier' => 'argument.type',
'count' => 1,
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
];
return ['parameters' => ['ignoreErrors' => $ignoreErrors]];