1 | <?php |
||
10 | class DumpRouterCommand extends AbstractPimpleCommand |
||
11 | { |
||
12 | protected function configure() |
||
19 | |||
20 | /** |
||
21 | * @param InputInterface $input |
||
22 | * @param OutputInterface $output |
||
23 | * @return int|null|void |
||
24 | * @throws \RuntimeException |
||
25 | */ |
||
26 | protected function execute(InputInterface $input, OutputInterface $output) |
||
31 | } |
This check looks for parameters that are defined as one type in their type hint or doc comment but seem to be used as a narrower type, i.e an implementation of an interface or a subclass.
Consider changing the type of the parameter or doing an instanceof check before assuming your parameter is of the expected type.