The expression return $this->output could return the type null which is incompatible with the type-hinted return Symfony\Component\Console\Output\OutputInterface. Consider adding an additional type-check to rule them out.
Loading history...
20
}
21
22
public function setOutput(OutputInterface $output): void