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()
135135 $ kernel
136136 ->method ('getBundles ' )
137137 ->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+ })]
139143 )]);
140144 $ kernel
141145 ->method ('getContainer ' )
@@ -163,7 +167,11 @@ public function testRegistrationErrorsAreDisplayedOnCommandNotFound()
163167 $ kernel
164168 ->method ('getBundles ' )
165169 ->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+ })]
167175 )]);
168176 $ kernel
169177 ->method ('getContainer ' )
@@ -193,7 +201,11 @@ public function testRunOnlyWarnsOnUnregistrableCommandAtTheEnd()
193201 $ kernel
194202 ->method ('getBundles ' )
195203 ->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+ })]
197209 )]);
198210 $ kernel
199211 ->method ('getContainer ' )
You can’t perform that action at this time.
0 commit comments