From 196f5ae573bf7374c5e57748484b4f1c8dad8d2c Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Thu, 25 Apr 2024 23:06:04 -0600 Subject: [PATCH] Ebook::GetByIdentifier can't return null --- lib/Ebook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Ebook.php b/lib/Ebook.php index bd82097d..1670c597 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -935,7 +935,7 @@ class Ebook{ // ORM METHODS // *********** - public static function GetByIdentifier(?string $identifier): ?Ebook{ + public static function GetByIdentifier(?string $identifier): Ebook{ if($identifier === null){ throw new Exceptions\EbookNotFoundException('Invalid identifier: ' . $identifier); }