The expression return $this->helper->as...his->output, $question) could return the type null|boolean which is incompatible with the type-hinted return string. Consider adding an additional type-check to rule them out.
Loading history...
30
}
31
32
/**
33
* @return string[]
34
*/
35
public function askMultipleChoiceQuestion() : array
36
{
37
$question = new \Symfony\Component\Console\Question\ChoiceQuestion($this->question, $this->choices);
The expression return $this->helper->as...his->output, $question) could return the type null|string|boolean which is incompatible with the type-hinted return array. Consider adding an additional type-check to rule them out.