From 0c87f1f262c6a5f392ea8806e68ed2e443760976 Mon Sep 17 00:00:00 2001 From: Mike Colagrosso Date: Sat, 25 Jan 2025 23:21:40 -0700 Subject: [PATCH] Remove unnecessary check ?? '' from non-null --- lib/Ebook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Ebook.php b/lib/Ebook.php index 700e91b8..6731045e 100644 --- a/lib/Ebook.php +++ b/lib/Ebook.php @@ -1582,7 +1582,7 @@ final class Ebook{ } if(isset($this->IndexableText)){ - $this->IndexableText = trim($this->IndexableText ?? ''); + $this->IndexableText = trim($this->IndexableText); if($this->IndexableText == ''){ $error->Add(new Exceptions\EbookIndexableTextRequiredException()); @@ -1593,7 +1593,7 @@ final class Ebook{ } if(isset($this->IndexableAuthors)){ - $this->IndexableAuthors = trim($this->IndexableAuthors ?? ''); + $this->IndexableAuthors = trim($this->IndexableAuthors); if($this->IndexableAuthors == ''){ $error->Add(new Exceptions\EbookIndexableAuthorsRequiredException());