mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Add some PHP 8.3-only features.
This commit is contained in:
@@ -36,7 +36,7 @@ class FixLongDescriptions extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
private const MAX_LENGTH = 1000;
|
||||
private const int MAX_LENGTH = 1000;
|
||||
protected $description = 'Fixes long descriptions in journals and groups.';
|
||||
protected $signature = 'firefly-iii:fix-long-descriptions';
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class CreateGroupMemberships extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '560_create_group_memberships';
|
||||
public const string CONFIG_NAME = '560_create_group_memberships';
|
||||
protected $description = 'Update group memberships';
|
||||
protected $signature = 'firefly-iii:create-group-memberships';
|
||||
|
||||
|
@@ -44,7 +44,7 @@ class AccountCurrencies extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_account_currencies';
|
||||
public const string CONFIG_NAME = '480_account_currencies';
|
||||
|
||||
protected $description = 'Give all accounts proper currency info.';
|
||||
protected $signature = 'firefly-iii:account-currencies {--F|force : Force the execution of this command.}';
|
||||
|
@@ -36,7 +36,7 @@ class AppendBudgetLimitPeriods extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '550_budget_limit_periods';
|
||||
public const string CONFIG_NAME = '550_budget_limit_periods';
|
||||
|
||||
protected $description = 'Append budget limits with their (estimated) timeframe.';
|
||||
|
||||
|
@@ -41,7 +41,7 @@ class BackToJournals extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_back_to_journals';
|
||||
public const string CONFIG_NAME = '480_back_to_journals';
|
||||
|
||||
protected $description = 'Move meta data back to journals, not individual transactions.';
|
||||
|
||||
|
@@ -39,7 +39,7 @@ class BudgetLimitCurrency extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_bl_currency';
|
||||
public const string CONFIG_NAME = '480_bl_currency';
|
||||
|
||||
protected $description = 'Give budget limits a currency';
|
||||
|
||||
|
@@ -39,7 +39,7 @@ class CCLiabilities extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_cc_liabilities';
|
||||
public const string CONFIG_NAME = '480_cc_liabilities';
|
||||
protected $description = 'Convert old credit card liabilities.';
|
||||
protected $signature = 'firefly-iii:cc-liabilities {--F|force : Force the execution of this command.}';
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class MigrateAttachments extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_migrate_attachments';
|
||||
public const string CONFIG_NAME = '480_migrate_attachments';
|
||||
|
||||
protected $description = 'Migrates attachment meta-data.';
|
||||
|
||||
|
@@ -37,7 +37,7 @@ class MigrateJournalNotes extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_migrate_notes';
|
||||
public const string CONFIG_NAME = '480_migrate_notes';
|
||||
|
||||
protected $description = 'Migrate notes for transaction journals.';
|
||||
|
||||
|
@@ -40,7 +40,7 @@ class MigrateRecurrenceMeta extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '481_migrate_recurrence_meta';
|
||||
public const string CONFIG_NAME = '481_migrate_recurrence_meta';
|
||||
|
||||
protected $description = 'Migrate recurrence meta data';
|
||||
|
||||
|
@@ -39,7 +39,7 @@ class MigrateRecurrenceType extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '550_migrate_recurrence_type';
|
||||
public const string CONFIG_NAME = '550_migrate_recurrence_type';
|
||||
|
||||
protected $description = 'Migrate transaction type of recurring transaction.';
|
||||
|
||||
|
@@ -38,7 +38,7 @@ class MigrateTagLocations extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '500_migrate_tag_locations';
|
||||
public const string CONFIG_NAME = '500_migrate_tag_locations';
|
||||
|
||||
protected $description = 'Migrate tag locations.';
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class MigrateToGroups extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_migrated_to_groups';
|
||||
public const string CONFIG_NAME = '480_migrated_to_groups';
|
||||
protected $description = 'Migrates a pre-4.7.8 transaction structure to the 4.7.8+ transaction structure.';
|
||||
protected $signature = 'firefly-iii:migrate-to-groups {--F|force : Force the migration, even if it fired before.}';
|
||||
private JournalCLIRepositoryInterface $cliRepository;
|
||||
|
@@ -44,7 +44,7 @@ class MigrateToRules extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_bills_to_rules';
|
||||
public const string CONFIG_NAME = '480_bills_to_rules';
|
||||
|
||||
protected $description = 'Migrate bills to rules.';
|
||||
|
||||
|
@@ -44,7 +44,7 @@ class OtherCurrenciesCorrections extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_other_currencies';
|
||||
public const string CONFIG_NAME = '480_other_currencies';
|
||||
protected $description = 'Update all journal currency information.';
|
||||
protected $signature = 'firefly-iii:other-currencies {--F|force : Force the execution of this command.}';
|
||||
private array $accountCurrencies;
|
||||
|
@@ -37,7 +37,7 @@ class RenameAccountMeta extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_rename_account_meta';
|
||||
public const string CONFIG_NAME = '480_rename_account_meta';
|
||||
|
||||
protected $description = 'Rename account meta-data to new format.';
|
||||
|
||||
|
@@ -41,7 +41,7 @@ class TransactionIdentifier extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_transaction_identifier';
|
||||
public const string CONFIG_NAME = '480_transaction_identifier';
|
||||
protected $description = 'Fixes transaction identifiers.';
|
||||
protected $signature = 'firefly-iii:transaction-identifiers {--F|force : Force the execution of this command.}';
|
||||
private JournalCLIRepositoryInterface $cliRepository;
|
||||
|
@@ -42,7 +42,7 @@ class TransferCurrenciesCorrections extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '480_transfer_currencies';
|
||||
public const string CONFIG_NAME = '480_transfer_currencies';
|
||||
protected $description = 'Updates transfer currency information.';
|
||||
protected $signature = 'firefly-iii:transfer-currencies {--F|force : Force the execution of this command.}';
|
||||
private array $accountCurrencies;
|
||||
|
@@ -40,7 +40,7 @@ class UpgradeCurrencyPreferences extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '610_upgrade_currency_prefs';
|
||||
public const string CONFIG_NAME = '610_upgrade_currency_prefs';
|
||||
|
||||
protected $description = 'Upgrade user currency preferences';
|
||||
|
||||
|
@@ -43,7 +43,7 @@ class UpgradeLiabilities extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '560_upgrade_liabilities';
|
||||
public const string CONFIG_NAME = '560_upgrade_liabilities';
|
||||
protected $description = 'Upgrade liabilities to new 5.6.0 structure.';
|
||||
protected $signature = 'firefly-iii:upgrade-liabilities {--F|force : Force the execution of this command.}';
|
||||
|
||||
|
@@ -44,7 +44,7 @@ class UpgradeLiabilitiesEight extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
|
||||
public const CONFIG_NAME = '600_upgrade_liabilities';
|
||||
public const string CONFIG_NAME = '600_upgrade_liabilities';
|
||||
protected $description = 'Upgrade liabilities to new 6.0.0 structure.';
|
||||
protected $signature = 'firefly-iii:liabilities-600 {--F|force : Force the execution of this command.}';
|
||||
|
||||
|
@@ -11,7 +11,7 @@ use Illuminate\Console\Command;
|
||||
class UpgradeSkeleton extends Command
|
||||
{
|
||||
use ShowsFriendlyMessages;
|
||||
public const CONFIG_NAME = '480_some_name';
|
||||
public const string CONFIG_NAME = '480_some_name';
|
||||
|
||||
protected $description = 'SOME DESCRIPTION';
|
||||
|
||||
|
Reference in New Issue
Block a user