It seems like $this->argument('module') targeting Illuminate\Console\Command::argument() can also be of type array; however, Illuminate\Support\Str::studly() does only seem to accept string, maybe add an additional type check?
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.
Loading history...
31
32
if (!$this->laravel['modules']->has($module)) {
33
$this->error("Module [{$module}] does not exists.");
34
35
return;
36
}
37
38
$this->laravel['modules']->setUsed($module);
39
40
$this->info("Module [{$module}] used successfully.");
41
}
42
43
/**
44
* Get the console command arguments.
45
*
46
* @return array
47
*/
48
56
protected function getArguments()
49
{
50
return array(
51
56
array('module', InputArgument::REQUIRED, 'The name of module will be used.'),
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.