mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Add more type hints
This commit is contained in:
parent
52ce255c05
commit
dfb43e0fa4
6 changed files with 17 additions and 9 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue