🤖 Auto commit for release 'develop' on 2025-10-05

This commit is contained in:
JC5
2025-10-05 13:03:51 +02:00
parent 50279d623c
commit b0033cf9ed
180 changed files with 285 additions and 455 deletions

View File

@@ -78,7 +78,8 @@ class AccountFactory
if (!$type instanceof AccountType) {
throw new FireflyException(sprintf('Cannot find account type "%s"', $accountType));
}
/** @var Account|null $return */
/** @var null|Account $return */
$return = $this->user->accounts->where('account_type_id', $type->id)->where('name', $accountName)->first();
if (null === $return) {

View File

@@ -36,6 +36,7 @@ use FireflyIII\Repositories\PiggyBank\PiggyBankRepositoryInterface;
use FireflyIII\User;
use Illuminate\Database\QueryException;
use Illuminate\Support\Facades\Log;
use function Safe\json_encode;
/**

View File

@@ -55,6 +55,7 @@ use FireflyIII\Validation\AccountValidator;
use Illuminate\Support\Collection;
use Illuminate\Support\Facades\Log;
use JsonException;
use function Safe\json_encode;
/**
@@ -342,8 +343,6 @@ class TransactionJournalFactory
/**
* If this transaction already exists, throw an error.
*
* @param string $hash
*
* @throws DuplicateTransactionException
* @throws JsonException
* @throws \Safe\Exceptions\JsonException
@@ -480,8 +479,6 @@ class TransactionJournalFactory
};
}
/**
*/
private function getCurrency(?TransactionCurrency $currency, Account $account): TransactionCurrency
{
Log::debug(sprintf('Now in getCurrency(#%d, "%s")', $currency?->id, $account->name));