mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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
|
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 */
|
/** @var RecurrenceTransaction $transaction */
|
||||||
foreach ($transactions as $index => $transaction) {
|
foreach ($transactions as $index => $transaction) {
|
||||||
$single = [
|
$single = [
|
||||||
'currency_id' => $transaction->transaction_currency_id,
|
'currency_id' => (int)$transaction->transaction_currency_id,
|
||||||
'currency_code' => null,
|
'currency_code' => null,
|
||||||
'description' => null,
|
'description' => null,
|
||||||
'amount' => $transaction->amount,
|
'amount' => $transaction->amount,
|
||||||
|
@ -574,7 +574,7 @@ class AccountFactoryTest extends TestCase
|
|||||||
public function testFindOrCreate(): void
|
public function testFindOrCreate(): void
|
||||||
{
|
{
|
||||||
/** @var Account $account */
|
/** @var Account $account */
|
||||||
$account = $this->user()->accounts()->inRandomOrder()->first();
|
$account = $this->getRandomAsset();
|
||||||
/** @var AccountFactory $factory */
|
/** @var AccountFactory $factory */
|
||||||
$factory = app(AccountFactory::class);
|
$factory = app(AccountFactory::class);
|
||||||
$factory->setUser($this->user());
|
$factory->setUser($this->user());
|
||||||
|
Loading…
Reference in New Issue
Block a user