Skip to content

Commit cbab42a

Browse files
author
Jeroen de Graaf
committed
Update baseline
1 parent 6959619 commit cbab42a

File tree

1 file changed

+63
-27
lines changed

1 file changed

+63
-27
lines changed

phpstan-baseline.php

Lines changed: 63 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,164 +2,200 @@
22

33
$ignoreErrors = [];
44
$ignoreErrors[] = [
5-
// identifier: method.unused
65
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\ChangeCourseCapacity\\:\\:onCourseCapacityChangedEvent\\(\\) is unused\\.$#',
6+
'identifier' => 'method.unused',
77
'count' => 1,
88
'path' => __DIR__ . '/src/Domain/Course/ChangeCourseCapacity.php',
99
];
1010
$ignoreErrors[] = [
11-
// identifier: method.unused
1211
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\ChangeCourseCapacity\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
12+
'identifier' => 'method.unused',
1313
'count' => 1,
1414
'path' => __DIR__ . '/src/Domain/Course/ChangeCourseCapacity.php',
1515
];
1616
$ignoreErrors[] = [
17-
// identifier: method.unused
1817
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\Course\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
18+
'identifier' => 'method.unused',
1919
'count' => 1,
2020
'path' => __DIR__ . '/src/Domain/Course/Course.php',
2121
];
2222
$ignoreErrors[] = [
23-
// identifier: method.unused
2423
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Course\\\\Course\\:\\:onCourseNameChangedEvent\\(\\) is unused\\.$#',
24+
'identifier' => 'method.unused',
2525
'count' => 1,
2626
'path' => __DIR__ . '/src/Domain/Course/Course.php',
2727
];
2828
$ignoreErrors[] = [
29-
// identifier: method.unused
3029
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\Student\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
30+
'identifier' => 'method.unused',
3131
'count' => 1,
3232
'path' => __DIR__ . '/src/Domain/Student/Student.php',
3333
];
3434
$ignoreErrors[] = [
35-
// identifier: property.onlyWritten
3635
'message' => '#^Property Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\Student\\\\Student\\:\\:\\$studentId is never read, only written\\.$#',
36+
'identifier' => 'property.onlyWritten',
3737
'count' => 1,
3838
'path' => __DIR__ . '/src/Domain/Student/Student.php',
3939
];
4040
$ignoreErrors[] = [
41-
// identifier: method.unused
4241
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourse\\:\\:onCourseCapacityChangedEvent\\(\\) is unused\\.$#',
42+
'identifier' => 'method.unused',
4343
'count' => 1,
4444
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/SubscribeStudentToCourse.php',
4545
];
4646
$ignoreErrors[] = [
47-
// identifier: method.unused
4847
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourse\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
48+
'identifier' => 'method.unused',
4949
'count' => 1,
5050
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/SubscribeStudentToCourse.php',
5151
];
5252
$ignoreErrors[] = [
53-
// identifier: method.unused
5453
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourse\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
54+
'identifier' => 'method.unused',
5555
'count' => 1,
5656
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/SubscribeStudentToCourse.php',
5757
];
5858
$ignoreErrors[] = [
59-
// identifier: method.unused
6059
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourse\\:\\:onStudentSubscribedToCourseEvent\\(\\) is unused\\.$#',
60+
'identifier' => 'method.unused',
6161
'count' => 1,
6262
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/SubscribeStudentToCourse.php',
6363
];
6464
$ignoreErrors[] = [
65-
// identifier: method.unused
6665
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourse\\:\\:onStudentUnsubscribedFromCourseEvent\\(\\) is unused\\.$#',
66+
'identifier' => 'method.unused',
6767
'count' => 1,
6868
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/SubscribeStudentToCourse.php',
6969
];
7070
$ignoreErrors[] = [
71-
// identifier: method.unused
7271
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourse\\:\\:onCourseCreatedEvent\\(\\) is unused\\.$#',
72+
'identifier' => 'method.unused',
7373
'count' => 1,
7474
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/UnsubscribeStudentFromCourse.php',
7575
];
7676
$ignoreErrors[] = [
77-
// identifier: method.unused
7877
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourse\\:\\:onStudentCreatedEvent\\(\\) is unused\\.$#',
78+
'identifier' => 'method.unused',
7979
'count' => 1,
8080
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/UnsubscribeStudentFromCourse.php',
8181
];
8282
$ignoreErrors[] = [
83-
// identifier: method.unused
8483
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourse\\:\\:onStudentSubscribedToCourseEvent\\(\\) is unused\\.$#',
84+
'identifier' => 'method.unused',
8585
'count' => 1,
8686
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/UnsubscribeStudentFromCourse.php',
8787
];
8888
$ignoreErrors[] = [
89-
// identifier: method.unused
9089
'message' => '#^Method Gember\\\\ExampleEventSourcingDcb\\\\Domain\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourse\\:\\:onStudentUnsubscribedFromCourseEvent\\(\\) is unused\\.$#',
90+
'identifier' => 'method.unused',
9191
'count' => 1,
9292
'path' => __DIR__ . '/src/Domain/StudentToCourseSubscription/UnsubscribeStudentFromCourse.php',
9393
];
9494
$ignoreErrors[] = [
95-
// identifier: cast.int
95+
'message' => '#^Binary operation "\\." between \'Course capacity…\' and mixed results in an error\\.$#',
96+
'identifier' => 'binaryOp.invalid',
97+
'count' => 1,
98+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
99+
];
100+
$ignoreErrors[] = [
96101
'message' => '#^Cannot cast mixed to int\\.$#',
102+
'identifier' => 'cast.int',
97103
'count' => 1,
98104
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
99105
];
100106
$ignoreErrors[] = [
101-
// identifier: argument.type
102107
'message' => '#^Parameter \\#1 \\$courseId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\ChangeCourseCapacityCommand constructor expects string, mixed given\\.$#',
108+
'identifier' => 'argument.type',
103109
'count' => 1,
104110
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/ChangeCourseCapacityCliCommand.php',
105111
];
106112
$ignoreErrors[] = [
107-
// identifier: cast.int
108113
'message' => '#^Cannot cast mixed to int\\.$#',
114+
'identifier' => 'cast.int',
109115
'count' => 1,
110116
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/CreateCourseCliCommand.php',
111117
];
112118
$ignoreErrors[] = [
113-
// identifier: argument.type
114119
'message' => '#^Parameter \\#2 \\$name of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\CreateCourseCommand constructor expects string, mixed given\\.$#',
120+
'identifier' => 'argument.type',
115121
'count' => 1,
116122
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/CreateCourseCliCommand.php',
117123
];
118124
$ignoreErrors[] = [
119-
// identifier: argument.type
125+
'message' => '#^Binary operation "\\." between \'Course renamed to \' and mixed results in an error\\.$#',
126+
'identifier' => 'binaryOp.invalid',
127+
'count' => 1,
128+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
129+
];
130+
$ignoreErrors[] = [
120131
'message' => '#^Parameter \\#1 \\$courseId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\RenameCourseCommand constructor expects string, mixed given\\.$#',
132+
'identifier' => 'argument.type',
121133
'count' => 1,
122134
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
123135
];
124136
$ignoreErrors[] = [
125-
// identifier: argument.type
126137
'message' => '#^Parameter \\#2 \\$name of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\Course\\\\RenameCourseCommand constructor expects string, mixed given\\.$#',
138+
'identifier' => 'argument.type',
127139
'count' => 1,
128140
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/Course/RenameCourseCliCommand.php',
129141
];
130142
$ignoreErrors[] = [
131-
// identifier: cast.int
132143
'message' => '#^Cannot cast mixed to int\\.$#',
144+
'identifier' => 'cast.int',
133145
'count' => 1,
134146
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/DemoRunCommand.php',
135147
];
136148
$ignoreErrors[] = [
137-
// identifier: argument.type
138149
'message' => '#^Parameter \\#1 \\$min \\(0\\) of function random_int expects lower number than parameter \\#2 \\$max \\(int\\<\\-1, max\\>\\)\\.$#',
150+
'identifier' => 'argument.type',
139151
'count' => 1,
140152
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/DemoRunCommand.php',
141153
];
142154
$ignoreErrors[] = [
143-
// identifier: argument.type
155+
'message' => '#^Binary operation "\\." between \'Student \\# \' and mixed results in an error\\.$#',
156+
'identifier' => 'binaryOp.invalid',
157+
'count' => 1,
158+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
159+
];
160+
$ignoreErrors[] = [
161+
'message' => '#^Binary operation "\\." between non\\-falsy\\-string and mixed results in an error\\.$#',
162+
'identifier' => 'binaryOp.invalid',
163+
'count' => 1,
164+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
165+
];
166+
$ignoreErrors[] = [
144167
'message' => '#^Parameter \\#1 \\$studentId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourseCommand constructor expects string, mixed given\\.$#',
168+
'identifier' => 'argument.type',
145169
'count' => 1,
146170
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
147171
];
148172
$ignoreErrors[] = [
149-
// identifier: argument.type
150173
'message' => '#^Parameter \\#2 \\$courseId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\StudentToCourseSubscription\\\\SubscribeStudentToCourseCommand constructor expects string, mixed given\\.$#',
174+
'identifier' => 'argument.type',
151175
'count' => 1,
152176
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/SubscribeStudentToCourseCliCommand.php',
153177
];
154178
$ignoreErrors[] = [
155-
// identifier: argument.type
179+
'message' => '#^Binary operation "\\." between \'Student \\# \' and mixed results in an error\\.$#',
180+
'identifier' => 'binaryOp.invalid',
181+
'count' => 1,
182+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
183+
];
184+
$ignoreErrors[] = [
185+
'message' => '#^Binary operation "\\." between non\\-falsy\\-string and mixed results in an error\\.$#',
186+
'identifier' => 'binaryOp.invalid',
187+
'count' => 1,
188+
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
189+
];
190+
$ignoreErrors[] = [
156191
'message' => '#^Parameter \\#1 \\$studentId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourseCommand constructor expects string, mixed given\\.$#',
192+
'identifier' => 'argument.type',
157193
'count' => 1,
158194
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
159195
];
160196
$ignoreErrors[] = [
161-
// identifier: argument.type
162197
'message' => '#^Parameter \\#2 \\$courseId of class Gember\\\\ExampleEventSourcingDcb\\\\Application\\\\Command\\\\StudentToCourseSubscription\\\\UnsubscribeStudentFromCourseCommand constructor expects string, mixed given\\.$#',
198+
'identifier' => 'argument.type',
163199
'count' => 1,
164200
'path' => __DIR__ . '/src/Infrastructure/Api/Cli/Command/StudentToCourseSubscription/UnsubscribeStudentFromCourseCliCommand.php',
165201
];

0 commit comments

Comments
 (0)