Skip to content

Firefly III: a personal finances manager

Deprecate constants

James Cole9d0fd7ef1b01
diff --git a/app/Models/AutoBudget.php b/app/Models/AutoBudget.php
index b92f5f5b17..1f271bffe9 100644
--- a/app/Models/AutoBudget.php
+++ b/app/Models/AutoBudget.php
@@ -39,8 +39,11 @@ class AutoBudget extends Model
use ReturnsIntegerIdTrait;
use SoftDeletes;
+ /** @deprecated */
public const int AUTO_BUDGET_ADJUSTED = 3;
+ /** @deprecated */
public const int AUTO_BUDGET_RESET = 1;
+ /** @deprecated */
public const int AUTO_BUDGET_ROLLOVER = 2;
protected $fillable = ['budget_id', 'amount', 'period'];
diff --git a/app/Models/RecurrenceRepetition.php b/app/Models/RecurrenceRepetition.php
index 525bb7edfa..fbe9cd248d 100644
--- a/app/Models/RecurrenceRepetition.php
+++ b/app/Models/RecurrenceRepetition.php
@@ -38,9 +38,13 @@ class RecurrenceRepetition extends Model
use ReturnsIntegerIdTrait;
use SoftDeletes;
+ /** @deprecated */
public const int WEEKEND_DO_NOTHING = 1;
+ /** @deprecated */
public const int WEEKEND_SKIP_CREATION = 2;
+ /** @deprecated */
public const int WEEKEND_TO_FRIDAY = 3;
+ /** @deprecated */
public const int WEEKEND_TO_MONDAY = 4;
protected $casts
diff --git a/app/Models/TransactionType.php b/app/Models/TransactionType.php
index 03d0fda5a2..32e85de8fa 100644
--- a/app/Models/TransactionType.php
+++ b/app/Models/TransactionType.php
@@ -38,12 +38,19 @@ class TransactionType extends Model
use ReturnsIntegerIdTrait;
use SoftDeletes;
+ /** @deprecated */
public const string DEPOSIT = 'Deposit';
+ /** @deprecated */
public const string INVALID = 'Invalid';
+ /** @deprecated */
public const string LIABILITY_CREDIT = 'Liability credit';
+ /** @deprecated */
public const string OPENING_BALANCE = 'Opening balance';
+ /** @deprecated */
public const string RECONCILIATION = 'Reconciliation';
+ /** @deprecated */
public const string TRANSFER = 'Transfer';
+ /** @deprecated */
public const string WITHDRAWAL = 'Withdrawal';
protected $casts