Closed UnknownNull closed 7 months ago
This doesn't make sense, as Game->getStage() never returns null.
This doesn't make sense, as Game->getStage() never returns null.
It returns null for me in many parts of the code and I am fixing them
But I don't know why Null returns
This is true of course:
protected function getLines(Session $session): array {
$game = $session->getGame();
if($game !== null && $game->getStage() !== null){
$stage = $session->getGame()->getStage();
if(!$stage instanceof PlayingStage) {
return [];
}
$event = $stage->getNextEvent();
return [
14 => "{GRAY}" . date("m/d/y"),
13 => " ",
12 => "{WHITE}" . $event->getName() . " in: {GREEN}" . gmdate("i:s", $event->getTimeRemaining()) . " ",
11 => " ",
] + $this->getTeams($session);
}else{
return [];
}
}
Fixed in 1.0.8
There are many of these...🥱