From 7888e81d524f4e2c37efce92ad516ebb657c388a Mon Sep 17 00:00:00 2001 From: Lee Peuker Date: Sun, 2 Jul 2023 21:44:00 +0200 Subject: [PATCH] Hotifx invalid method --- src/Service/ServerSettings.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Service/ServerSettings.php b/src/Service/ServerSettings.php index 2d3a6a27..d05d5237 100644 --- a/src/Service/ServerSettings.php +++ b/src/Service/ServerSettings.php @@ -154,7 +154,9 @@ public function isTmdbApiKeySetInEnvironment() : bool public function requireApplicationUrl() : string { $value = $this->getByKey(self::APPLICATION_URL, true); - assertNotNull($value); + if ($value === null) { + throw ConfigNotSetException::create(self::APPLICATION_URL); + } return $value; } @@ -162,7 +164,9 @@ public function requireApplicationUrl() : string public function requirePlexIdentifier() : string { $value = $this->getByKey(self::PLEX_IDENTIFIER, true); - assertNotNull($value); + if ($value === null) { + throw ConfigNotSetException::create(self::PLEX_IDENTIFIER); + } return $value; }