We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c358e2 commit 3900e87Copy full SHA for 3900e87
1 file changed
src/LanguageRegistrar.php
@@ -98,13 +98,9 @@ public function getLanguages(array $params = []): Collection
98
->active()
99
->get();
100
} catch (QueryException $e) {
101
- if (app()->runningUnitTests()) {
102
- // silently fail if languages can't be loaded in tests
103
- Log::error('LanguageRegistrarError: ' . $e->getMessage());
104
- return collect();
105
- }
106
-
107
- throw $e;
+ // silently fail if languages can't be loaded
+ Log::error('LanguageRegistrarError: ' . $e->getMessage());
+ return collect();
108
}
109
});
110
0 commit comments