mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-15 22:28:14 +00:00
Fix various phpstan issues.
This commit is contained in:
@@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace FireflyIII\Repositories\Budget;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use FireflyIII\Enums\AutoBudgetType;
|
||||
use FireflyIII\Enums\TransactionTypeEnum;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Helpers\Collector\GroupCollectorInterface;
|
||||
@@ -760,13 +761,13 @@ class BudgetRepository implements BudgetRepositoryInterface
|
||||
}
|
||||
|
||||
if ('reset' === $type) {
|
||||
$type = AutoBudget::AUTO_BUDGET_RESET;
|
||||
$type = AutoBudgetType::AUTO_BUDGET_RESET->value;
|
||||
}
|
||||
if ('rollover' === $type) {
|
||||
$type = AutoBudget::AUTO_BUDGET_ROLLOVER;
|
||||
$type = AutoBudgetType::AUTO_BUDGET_ROLLOVER->value;
|
||||
}
|
||||
if ('adjusted' === $type) {
|
||||
$type = AutoBudget::AUTO_BUDGET_ADJUSTED;
|
||||
$type = AutoBudgetType::AUTO_BUDGET_ADJUSTED->value;
|
||||
}
|
||||
|
||||
/** @var CurrencyRepositoryInterface $repos */
|
||||
|
||||
Reference in New Issue
Block a user