Skip to content

Commit b55393c

Browse files
authored
Set distinct version for error (#2779)
1 parent fcdad94 commit b55393c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ private static function lookupVersion(): string
328328
try {
329329
return self::$version = InstalledVersions::getPrettyVersion('mongodb/laravel-mongodb');
330330
} catch (Throwable) {
331-
// Ignore exceptions and return unknown version
331+
return self::$version = 'error';
332332
}
333333
}
334334

0 commit comments

Comments
 (0)