Fix PHPStan errors

This commit is contained in:
Mike Colagrosso 2024-05-20 20:37:25 -06:00 committed by Alex Cabal
parent 79daa82bf4
commit 72d679a04f
12 changed files with 53 additions and 0 deletions

View file

@ -2,6 +2,9 @@
class LocSubject extends Tag{
public int $LocSubjectId;
/**
* @throws \Exceptions\ValidationException
*/
public function Validate(): void{
$error = new Exceptions\ValidationException();
@ -14,6 +17,9 @@ class LocSubject extends Tag{
}
}
/**
* @throws \Exceptions\ValidationException
*/
public function Create(): void{
$this->Validate();
@ -24,6 +30,9 @@ class LocSubject extends Tag{
$this->LocSubjectId = Db::GetLastInsertedId();
}
/**
* @throws \Exceptions\ValidationException
*/
public function GetByNameOrCreate(string $name): LocSubject{
$result = Db::Query('
SELECT *