1 | <?php |
||
21 | final class GrammarCompileCommand extends Command |
||
22 | { |
||
23 | /** |
||
24 | * @var string Default parser output path |
||
25 | */ |
||
26 | private const PARSER_GRAMMAR = __DIR__ . '/../../resources/grammar.pp2'; |
||
27 | |||
28 | /** |
||
29 | * @var string Default parser output path |
||
30 | */ |
||
31 | private const OUT_PATH = __DIR__ . '/../Grammar'; |
||
32 | |||
33 | /** |
||
34 | * @var string Default generated parser class name |
||
35 | */ |
||
36 | private const OUT_CLASS_NAME = 'Parser'; |
||
37 | |||
38 | /** |
||
39 | * @var string Default generated parser class name |
||
40 | */ |
||
41 | private const OUT_NAMESPACE = 'Railt\\Compiler\\Grammar'; |
||
42 | |||
43 | /** |
||
44 | * @param InputInterface $in |
||
45 | * @param OutputInterface $out |
||
46 | * @throws \Railt\Io\Exception\ExternalFileException |
||
47 | * @throws \Railt\Io\Exception\NotReadableException |
||
48 | * @throws \Throwable |
||
49 | */ |
||
50 | public function execute(InputInterface $in, OutputInterface $out): void |
||
59 | |||
60 | /** |
||
61 | * @return void |
||
62 | * @throws \Symfony\Component\Console\Exception\InvalidArgumentException |
||
63 | */ |
||
64 | protected function configure(): void |
||
69 | } |
||
70 |
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.