mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-11 16:05:50 -06:00
Fix for #1728
This commit is contained in:
parent
e0152d3df4
commit
6c4f967c39
@ -92,7 +92,7 @@ class Request extends FormRequest
|
||||
*/
|
||||
public function string(string $field): string
|
||||
{
|
||||
return app('steam')->cleanString($this->get($field) ?? '');
|
||||
return app('steam')->cleanString((string)($this->get($field) ?? ''));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -238,7 +238,7 @@ class CreateRecurringTransactions implements ShouldQueue
|
||||
/** @var RecurrenceTransaction $transaction */
|
||||
foreach ($transactions as $index => $transaction) {
|
||||
$single = [
|
||||
'currency_id' => $transaction->transaction_currency_id,
|
||||
'currency_id' => (int)$transaction->transaction_currency_id,
|
||||
'currency_code' => null,
|
||||
'description' => null,
|
||||
'amount' => $transaction->amount,
|
||||
|
@ -574,7 +574,7 @@ class AccountFactoryTest extends TestCase
|
||||
public function testFindOrCreate(): void
|
||||
{
|
||||
/** @var Account $account */
|
||||
$account = $this->user()->accounts()->inRandomOrder()->first();
|
||||
$account = $this->getRandomAsset();
|
||||
/** @var AccountFactory $factory */
|
||||
$factory = app(AccountFactory::class);
|
||||
$factory->setUser($this->user());
|
||||
|
Loading…
Reference in New Issue
Block a user