We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f63a1a commit a27c67dCopy full SHA for a27c67d
1 file changed
app/Services/MediaWikiHostResolver.php
@@ -32,6 +32,10 @@ public function getMwVersionForDomain(string $domain): string
32
->pluck('version')
33
->first();
34
35
+ if (! isset(self::DB_VERSION_TO_MW_VERSION[$dbVersion])) {
36
+ throw new \Exception("undefined db version for wiki domain: '$domain'");
37
+ }
38
+
39
return self::DB_VERSION_TO_MW_VERSION[$dbVersion];
40
}
41
0 commit comments