mirror of
https://github.com/standardebooks/web.git
synced 2025-07-07 07:10:29 -04:00
Ebook::GetByIdentifier can't return null
This commit is contained in:
parent
572fd90fed
commit
196f5ae573
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue