mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -04:00
More type hinting
This commit is contained in:
parent
cb79832092
commit
1c3640fab6
6 changed files with 56 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue