Add more type hints

This commit is contained in:
Alex Cabal 2024-05-16 12:47:01 -05:00
parent 52ce255c05
commit dfb43e0fa4
6 changed files with 17 additions and 9 deletions

View file

@ -5,6 +5,7 @@ session_start();
$poll = new Poll();
$vote = new PollVote();
/** @var ?\Exception $exception */
$exception = $_SESSION['exception'] ?? null;
try{
@ -13,6 +14,7 @@ try{
}
if(isset($_SESSION['vote'])){
/** @var PollVote $vote */
$vote = $_SESSION['vote'];
}
else{