Fix various phpstan issues.

This commit is contained in:
James Cole
2025-01-03 14:56:06 +01:00
parent a8ae496fda
commit 394d0eabef
42 changed files with 133 additions and 181 deletions

View File

@@ -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 */