Skip to content

Commit a27c67d

Browse files
committed
add exception
1 parent 6f63a1a commit a27c67d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/Services/MediaWikiHostResolver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public function getMwVersionForDomain(string $domain): string
3232
->pluck('version')
3333
->first();
3434

35+
if (! isset(self::DB_VERSION_TO_MW_VERSION[$dbVersion])) {
36+
throw new \Exception("undefined db version for wiki domain: '$domain'");
37+
}
38+
3539
return self::DB_VERSION_TO_MW_VERSION[$dbVersion];
3640
}
3741
}

0 commit comments

Comments
 (0)