More type hinting

This commit is contained in:
Alex Cabal 2024-01-08 20:21:42 -06:00
parent cb79832092
commit 1c3640fab6
6 changed files with 56 additions and 29 deletions

View file

@ -114,6 +114,10 @@ class User extends PropertiesBase{
// ***********
public static function Get(?int $userId): User{
if($userId === null){
throw new Exceptions\InvalidUserException();
}
$result = Db::Query('
SELECT *
from Users