1 | <?php |
||
9 | class ViewModelMakeCommand extends GeneratorCommand |
||
10 | { |
||
11 | protected $name = 'make:view-model'; |
||
12 | |||
13 | protected $description = 'Create a new ViewModel class'; |
||
14 | |||
15 | protected $type = 'ViewModel'; |
||
16 | |||
17 | public function handle() |
||
25 | |||
26 | protected function getStub() |
||
30 | |||
31 | protected function getDefaultNamespace($rootNamespace) |
||
39 | |||
40 | protected function getOptions(): array |
||
46 | |||
47 | protected function isCustomNamespace(): bool |
||
51 | } |
||
52 |
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.