Ebook::GetByIdentifier can't return null

This commit is contained in:
Mike Colagrosso 2024-04-25 23:06:04 -06:00 committed by Alex Cabal
parent 572fd90fed
commit 196f5ae573

View file

@ -935,7 +935,7 @@ class Ebook{
// ORM METHODS // ORM METHODS
// *********** // ***********
public static function GetByIdentifier(?string $identifier): ?Ebook{ public static function GetByIdentifier(?string $identifier): Ebook{
if($identifier === null){ if($identifier === null){
throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier); throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier);
} }