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; }