| 1 | <?php |
||
| 14 | abstract class AbstractApplication extends SymfonyApplication |
||
| 15 | { |
||
| 16 | |||
| 17 | use ConfigurableTrait; |
||
| 18 | use ContainerAwareTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Returns the list of commands classes that the application exposes |
||
| 22 | * |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | abstract protected function getCommands(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param InputInterface $input |
||
| 29 | * @param OutputInterface $output |
||
| 30 | * @return int |
||
|
|
|||
| 31 | * @throws \Exception |
||
| 32 | */ |
||
| 33 | public function run(InputInterface $input = null, OutputInterface $output = null) |
||
| 42 | |||
| 43 | |||
| 44 | } |
||
| 45 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.