mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-17 17:57:09 +00:00
Cast to string because trans() could return array
This commit is contained in:
@@ -217,7 +217,7 @@ trait AccountServiceTrait
|
|||||||
*/
|
*/
|
||||||
public function storeOpposingAccount(User $user, string $name): Account
|
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.');
|
Log::debug('Going to create an opening balance opposing account.');
|
||||||
/** @var AccountFactory $factory */
|
/** @var AccountFactory $factory */
|
||||||
$factory = app(AccountFactory::class);
|
$factory = app(AccountFactory::class);
|
||||||
|
Reference in New Issue
Block a user