File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function translator(string $translator): Translator
47
47
* @var class-string<Translators[T]> $instance
48
48
*/
49
49
$ instance = str ($ translator )->ucfirst ()->prepend ('\Ferdiunal\LaravelTranslator\Translators \\' )->append ('Translator ' )->toString ();
50
- if (! class_exists ($ instance )) {
50
+ if (! class_exists ($ instance ) && ! app ()-> environment ( ' testing ' ) ) {
51
51
throw new \Exception (sprintf ('The translator %s does not exist. ' , $ instance ));
52
52
}
53
53
Original file line number Diff line number Diff line change @@ -24,8 +24,5 @@ protected function getPackageProviders($app)
24
24
];
25
25
}
26
26
27
- public function getEnvironmentSetUp ($ app )
28
- {
29
-
30
- }
27
+ public function getEnvironmentSetUp ($ app ) {}
31
28
}
You can’t perform that action at this time.
0 commit comments