mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Update translations and fix some code.
This commit is contained in:
@@ -31,6 +31,7 @@ use FireflyIII\Repositories\Account\AccountRepositoryInterface;
|
||||
use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface;
|
||||
use FireflyIII\Support\CacheProperties;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Support\Collection;
|
||||
use JsonException;
|
||||
|
||||
@@ -128,10 +129,13 @@ class NetWorth implements NetWorthInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User|Authenticatable|null $user
|
||||
*/
|
||||
public function setUser(User $user): void
|
||||
public function setUser(User|Authenticatable|null $user): void
|
||||
{
|
||||
if (null === $user) {
|
||||
return;
|
||||
}
|
||||
$this->user = $user;
|
||||
|
||||
// make repository:
|
||||
|
@@ -25,6 +25,7 @@ namespace FireflyIII\Helpers\Report;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\User;
|
||||
use Illuminate\Contracts\Auth\Authenticatable;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
@@ -54,9 +55,9 @@ interface NetWorthInterface
|
||||
public function getNetWorthByCurrency(Collection $accounts, Carbon $date): array;
|
||||
|
||||
/**
|
||||
* @param User $user
|
||||
* @param User|Authenticatable|null $user
|
||||
*/
|
||||
public function setUser(User $user): void;
|
||||
public function setUser(User|Authenticatable|null $user): void;
|
||||
|
||||
/**
|
||||
* TODO move to repository
|
||||
|
Reference in New Issue
Block a user