|
23 | 23 | use Symfony\Component\Console\Application;
|
24 | 24 | use Symfony\Component\Console\Command\Command;
|
25 | 25 | use Symfony\Component\Console\Formatter\OutputFormatter;
|
| 26 | +use Symfony\Component\Console\Formatter\OutputFormatterInterface; |
26 | 27 | use Symfony\Component\Console\Formatter\OutputFormatterStyle;
|
27 | 28 | use Symfony\Component\Console\Input\ArrayInput;
|
28 | 29 | use Symfony\Component\Console\Input\InputInterface;
|
@@ -201,7 +202,7 @@ protected function registerShellCommands()
|
201 | 202 | /**
|
202 | 203 | * Configure the output formatter.
|
203 | 204 | */
|
204 |
| - private function configureFormatter(OutputFormatter $formatter) |
| 205 | + private function configureFormatter(OutputFormatterInterface $formatter) |
205 | 206 | {
|
206 | 207 | $style = new OutputFormatterStyle('yellow', null, ['bold']);
|
207 | 208 | $formatter->setStyle('pathbold', $style);
|
@@ -234,10 +235,7 @@ private function configureFormatter(OutputFormatter $formatter)
|
234 | 235 | $formatter->setStyle('exception', $style);
|
235 | 236 | }
|
236 | 237 |
|
237 |
| - /** |
238 |
| - * {@inheritdoc} |
239 |
| - */ |
240 |
| - public function doRun(InputInterface $input, OutputInterface $output) |
| 238 | + public function doRun(InputInterface $input, OutputInterface $output): int |
241 | 239 | {
|
242 | 240 | $this->init();
|
243 | 241 |
|
@@ -279,7 +277,7 @@ protected function getDefaultCommand()
|
279 | 277 | *
|
280 | 278 | * {@inheritdoc}
|
281 | 279 | */
|
282 |
| - public function add(Command $command) |
| 280 | + public function add(Command $command): ?Command |
283 | 281 | {
|
284 | 282 | if ($command instanceof ContainerAwareInterface) {
|
285 | 283 | $command->setContainer($this->container);
|
@@ -307,7 +305,7 @@ public function dispatchProfileInitEvent(InputInterface $sessionInput, OutputInt
|
307 | 305 | *
|
308 | 306 | * {@inheritdoc}
|
309 | 307 | */
|
310 |
| - public function all($namespace = null) |
| 308 | + public function all($namespace = null): array |
311 | 309 | {
|
312 | 310 | $this->init();
|
313 | 311 |
|
|
0 commit comments