It seems like $arg1 can also be of type string[]; however, parameter $args of sprintf() does only seem to accept string, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
31
$io->note(sprintf('You passed an argument: %s', /** @scrutinizer ignore-type */ $arg1));
Loading history...
32
}
33
34
if ($input->getOption('option1')) {
35
// ...
36
}
37
38
$io->success('You have a new command! Now make it your own! Pass --help to see your options.');