mirror of
https://github.com/standardebooks/web.git
synced 2025-07-14 02:21:55 -04:00
PHPStan tweaks
This commit is contained in:
parent
497f749523
commit
de9e8161ce
6 changed files with 22 additions and 3 deletions
|
@ -31,6 +31,10 @@ class PollItem extends PropertiesBase{
|
|||
// ***********
|
||||
|
||||
public static function Get(?int $pollItemId): PollItem{
|
||||
if($pollItemId === null ){
|
||||
throw new Exceptions\InvalidPollItemException();
|
||||
}
|
||||
|
||||
$result = Db::Query('SELECT * from PollItems where PollItemId = ?', [$pollItemId], 'PollItem');
|
||||
|
||||
if(sizeof($result) == 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue