mirror of
https://github.com/standardebooks/web.git
synced 2025-07-09 16:20:27 -04:00
PHPStan tweaks
This commit is contained in:
parent
497f749523
commit
de9e8161ce
6 changed files with 22 additions and 3 deletions
|
@ -51,6 +51,10 @@ class User extends PropertiesBase{
|
|||
}
|
||||
|
||||
public static function GetByEmail(?string $email): User{
|
||||
if($email === null){
|
||||
throw new Exceptions\InvalidUserException();
|
||||
}
|
||||
|
||||
$result = Db::Query('SELECT * from Users where Email = ?', [$email], 'User');
|
||||
|
||||
if(sizeof($result) == 0){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue