mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Final set of php8.4 changes.
This commit is contained in:
@@ -418,7 +418,7 @@ class FireflyValidator extends Validator
|
||||
// check transaction type.
|
||||
// TODO create a helper to automatically return these.
|
||||
if ('transaction_type' === $triggerType) {
|
||||
$count = TransactionType::where('type', ucfirst($value))->count();
|
||||
$count = TransactionType::where('type', ucfirst((string) $value))->count();
|
||||
|
||||
return 1 === $count;
|
||||
}
|
||||
|
@@ -593,7 +593,7 @@ trait TransactionValidation
|
||||
/** @var null|TransactionJournal $journal */
|
||||
$journal = TransactionJournal::with(['transactionType'])->find($journalId);
|
||||
if (null !== $journal) {
|
||||
return strtolower($journal->transactionType->type);
|
||||
return strtolower((string) $journal->transactionType->type);
|
||||
}
|
||||
|
||||
return 'invalid';
|
||||
|
Reference in New Issue
Block a user