Add strict types, add debug info

This commit is contained in:
James Cole
2022-07-16 09:25:10 +02:00
parent 5c3b4d1663
commit 9493046212
38 changed files with 222 additions and 86 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AccountTypeEnum.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -41,4 +42,4 @@ enum AccountTypeEnum: string
case RECONCILIATION = 'Reconciliation account';
case REVENUE = 'Revenue account';
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* AutoBudgetType.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -28,4 +29,4 @@ enum AutoBudgetType: int
{
case AUTO_BUDGET_RESET = 1;
case AUTO_BUDGET_ROLLOVER = 2;
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* RecurrenceRepetitionWeekend.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -27,4 +28,4 @@ enum RecurrenceRepetitionWeekend: int
case WEEKEND_SKIP_CREATION = 2;
case WEEKEND_TO_FRIDAY = 3;
case WEEKEND_TO_MONDAY = 4;
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* TransactionTypeEnum.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -33,4 +34,4 @@ enum TransactionTypeEnum: string
case RECONCILIATION = 'Reconciliation';
case TRANSFER = 'Transfer';
case WITHDRAWAL = 'Withdrawal';
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* UserRoleEnum.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -31,4 +32,4 @@ enum UserRoleEnum: string
case OWNER = 'owner';
case READ_ONLY = 'ro';
case VIEW_REPORTS = 'view_reports';
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* WebhookDelivery.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -24,4 +25,4 @@ namespace FireflyIII\Enums;
enum WebhookDelivery: int
{
case JSON = 300;
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* WebhookResponse.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -26,4 +27,4 @@ enum WebhookResponse: int
case TRANSACTIONS = 200;
case ACCOUNTS = 210;
case NONE = 220;
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/*
* WebhookTrigger.php
* Copyright (c) 2022 james@firefly-iii.org
@@ -26,4 +27,4 @@ enum WebhookTrigger: int
case STORE_TRANSACTION = 100;
case UPDATE_TRANSACTION = 110;
case DESTROY_TRANSACTION = 120;
}
}