1 | <?php |
||
12 | class RunTestCommand extends Command |
||
13 | { |
||
14 | /** |
||
15 | * Configuration of command |
||
16 | */ |
||
17 | protected function configure() |
||
24 | |||
25 | /** |
||
26 | * Execute method of command |
||
27 | * |
||
28 | * @param InputInterface $input |
||
29 | * @param OutputInterface $output |
||
30 | * |
||
31 | * @return int|null|void |
||
32 | */ |
||
33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
39 | } |
||
40 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.