1 | <?php |
||
9 | class UseCommand extends ComponentCommand |
||
10 | { |
||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'component:use'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Use the specified component.'; |
||
24 | |||
25 | /** |
||
26 | * Execute the console command. |
||
27 | * |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function fire() |
||
44 | |||
45 | /** |
||
46 | * Get the console command arguments. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getArguments() |
||
56 | } |
||
57 |
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.