Skip to content

Commit e355281

Browse files
Merge pull request antonioribeiro#154 from Holidaysplease/master
Fix "Object of class Illuminate\Translation\FileLoader could not be converted to string"
2 parents 4965c10 + bb5c254 commit e355281

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Support/ErrorBag.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ protected function getErrorBagForStatusCode($statusCode)
3838
return $this->createErrorBagForMessage(
3939
trans(
4040
config(
41-
array_key_exists($statusCode, $errorMap) ? $errorMap[$statusCode] : 'google2fa.error_messages.unknown'
41+
array_key_exists($statusCode, $errorMap) ? $errorMap[$statusCode] : 'google2fa.error_messages.unknown',
42+
'google2fa.error_messages.unknown'
4243
)
4344
)
4445
);

0 commit comments

Comments
 (0)