mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 19:06:49 -04:00
PHPStan tweaks
This commit is contained in:
parent
497f749523
commit
de9e8161ce
6 changed files with 22 additions and 3 deletions
|
@ -100,10 +100,9 @@ class Vote extends PropertiesBase{
|
|||
$this->VoteId = Db::GetLastInsertedId();
|
||||
}
|
||||
|
||||
public static function Get(?string $pollUrlName, ?int $userId): ?Vote{
|
||||
public static function Get(?string $pollUrlName, ?int $userId): Vote{
|
||||
if($pollUrlName === null || $userId === null){
|
||||
vdd('nn');
|
||||
return null;
|
||||
throw new Exceptions\InvalidVoteException();
|
||||
}
|
||||
|
||||
$result = Db::Query('SELECT v.* from Votes v inner join
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue