1 | <?php |
||
21 | class CompileGrammarCommand extends Command |
||
22 | { |
||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | private const PATH_TO_GRAMMAR = __DIR__ . '/../../resources/grammar.pp2'; |
||
27 | |||
28 | /** |
||
29 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
30 | */ |
||
31 | protected function configure(): void |
||
36 | |||
37 | /** |
||
38 | * @param InputInterface $input |
||
39 | * @param OutputInterface $output |
||
40 | * @return int|null|void |
||
41 | * @throws \Railt\Io\Exception\ExternalFileException |
||
42 | * @throws \Railt\Io\Exception\NotReadableException |
||
43 | * @throws \Throwable |
||
44 | */ |
||
45 | public function execute(InputInterface $input, OutputInterface $output) |
||
53 | } |
||
54 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.