| 1 | <?php |
||
| 19 | class SDLGrammarCompileCommand extends Command |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | private const SCHEMA_SDL_GRAMMAR = __DIR__ . '/../../resources/grammar.pp2'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $signature = 'sdl:grammar:compile'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $description = 'Compile GraphQL SDL Parser'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @throws \Railt\Io\Exception\ExternalFileException |
||
| 38 | * @throws \Railt\Io\Exception\NotReadableException |
||
| 39 | * @throws \Throwable |
||
| 40 | */ |
||
| 41 | public function handle(): void |
||
| 50 | } |
||
| 51 |
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.