It seems like $output can also be of type null; however, parameter $output of Symfony\Component\Consol...onyStyle::__construct() does only seem to accept Symfony\Component\Console\Output\OutputInterface, 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
39
$style = new SymfonyStyle($style, /** @scrutinizer ignore-type */ $output);