Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Cast to string because trans() could return array
Dennis Enderink057619b15730
diff --git a/app/Services/Internal/Support/AccountServiceTrait.php b/app/Services/Internal/Support/AccountServiceTrait.phpindex c87f879934..d58661fda4 100644--- a/app/Services/Internal/Support/AccountServiceTrait.php+++ b/app/Services/Internal/Support/AccountServiceTrait.php@@ -217,12 +217,12 @@ trait AccountServiceTrait*/public function storeOpposingAccount(User $user, string $name): Account{- $opposingAccountName = trans('firefly.initial_balance_account', ['name' => $name]);+ $opposingAccountName = (string)trans('firefly.initial_balance_account', ['name' => $name]);Log::debug('Going to create an opening balance opposing account.');/** @var AccountFactory $factory */$factory = app(AccountFactory::class);$factory->setUser($user);-+return $factory->findOrCreate($opposingAccountName, AccountType::INITIAL_BALANCE);}