mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 23:45:10 +00:00
Fix phpstan issues.
This commit is contained in:
@@ -76,7 +76,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
{
|
||||
if ($fromCurrency->id === $toCurrency->id) {
|
||||
$rate = new CurrencyExchangeRate();
|
||||
$rate->rate = 1;
|
||||
$rate->rate = "1";
|
||||
$rate->id = 0;
|
||||
|
||||
return $rate;
|
||||
@@ -123,7 +123,7 @@ class CurrencyRepository implements CurrencyRepositoryInterface
|
||||
*/
|
||||
public function setUser(User | Authenticatable | null $user): void
|
||||
{
|
||||
if (null !== $user) {
|
||||
if ($user instanceof User) {
|
||||
$this->user = $user;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user