It seems like $writerType can also be of type null; however, parameter $writerType of Bugloos\ExportBundle\Writer::export() 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
33
$output = (new Writer())->export($exportClass, /** @scrutinizer ignore-type */ $writerType);
It seems like $writerType can also be of type null; however, parameter $exportFormat of Bugloos\ExportBundle\Fac...Factory::makeResponse() 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
37
return (new ResponseFactory())->makeResponse(/** @scrutinizer ignore-type */ $writerType, $output, $fileName);
Loading history...
38
}
39
40
public function makeFileNameExtension($writerType): string