File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,11 @@ public function testRunOnlyWarnsOnUnregistrableCommand()
135
135
$ kernel
136
136
->method ('getBundles ' )
137
137
->willReturn ([$ this ->createBundleMock (
138
- [(new Command ('fine ' ))->setCode (function (InputInterface $ input , OutputInterface $ output ) { $ output ->write ('fine ' ); })]
138
+ [(new Command ('fine ' ))->setCode (function (InputInterface $ input , OutputInterface $ output ): int {
139
+ $ output ->write ('fine ' );
140
+
141
+ return 0 ;
142
+ })]
139
143
)]);
140
144
$ kernel
141
145
->method ('getContainer ' )
@@ -163,7 +167,11 @@ public function testRegistrationErrorsAreDisplayedOnCommandNotFound()
163
167
$ kernel
164
168
->method ('getBundles ' )
165
169
->willReturn ([$ this ->createBundleMock (
166
- [(new Command (null ))->setCode (function (InputInterface $ input , OutputInterface $ output ) { $ output ->write ('fine ' ); })]
170
+ [(new Command (null ))->setCode (function (InputInterface $ input , OutputInterface $ output ): int {
171
+ $ output ->write ('fine ' );
172
+
173
+ return 0 ;
174
+ })]
167
175
)]);
168
176
$ kernel
169
177
->method ('getContainer ' )
@@ -193,7 +201,11 @@ public function testRunOnlyWarnsOnUnregistrableCommandAtTheEnd()
193
201
$ kernel
194
202
->method ('getBundles ' )
195
203
->willReturn ([$ this ->createBundleMock (
196
- [(new Command ('fine ' ))->setCode (function (InputInterface $ input , OutputInterface $ output ) { $ output ->write ('fine ' ); })]
204
+ [(new Command ('fine ' ))->setCode (function (InputInterface $ input , OutputInterface $ output ): int {
205
+ $ output ->write ('fine ' );
206
+
207
+ return 0 ;
208
+ })]
197
209
)]);
198
210
$ kernel
199
211
->method ('getContainer ' )
You can’t perform that action at this time.
0 commit comments