It seems like $this->argument('name') targeting Illuminate\Console\Command::argument() can also be of type array; however, FondBot\Foundation\API::findDriver() 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...
23
24
if ($driver === null) {
25
$this->error('"'.$name.'" is not found in the available drivers list.');
26
27
exit(0);
28
}
29
30
if ($composer->installed($driver['package'])) {
31
$this->error('Driver is already installed.');
32
33
return;
34
}
35
36
// Install driver
37
$this->info('Installing driver...');
38
39
$result = $composer->install($driver['package'], function ($_, $line) use (&$output) {
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.