Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove unused class. #11544
James Cole7773862eb9f4
diff --git a/app/Events/Model/Bill/WarnUserAboutOverdueSubscriptions.php b/app/Events/Model/Bill/WarnUserAboutOverdueSubscriptions.phpdeleted file mode 100644index 9306bfc208..0000000000--- a/app/Events/Model/Bill/WarnUserAboutOverdueSubscriptions.php+++ /dev/null@@ -1,38 +0,0 @@-<?php---/*- * WarnUserAboutOverdueSubscriptions.php- * Copyright (c) 2025 [email protected]- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see <https://www.gnu.org/licenses/>.- */--declare(strict_types=1);--namespace FireflyIII\Events\Model\Bill;--use FireflyIII\Events\Event;-use FireflyIII\User;-use Illuminate\Queue\SerializesModels;--class WarnUserAboutOverdueSubscriptions extends Event-{- use SerializesModels;-- public function __construct(public User $user, public array $overdue) {}--}diff --git a/app/Jobs/WarnAboutBills.php b/app/Jobs/WarnAboutBills.phpindex 777d596e08..cc00368708 100644--- a/app/Jobs/WarnAboutBills.php+++ b/app/Jobs/WarnAboutBills.php@@ -25,8 +25,8 @@ declare(strict_types=1);namespace FireflyIII\Jobs;use Carbon\Carbon;-use FireflyIII\Events\Model\Bill\WarnUserAboutOverdueSubscriptions;use FireflyIII\Events\Model\Subscription\SubscriptionNeedsExtensionOrRenewal;+use FireflyIII\Events\Model\Subscription\SubscriptionsAreOverdueForPayment;use FireflyIII\Models\Bill;use FireflyIII\Support\Facades\Navigation;use FireflyIII\Support\JsonApi\Enrichments\SubscriptionEnrichment;@@ -197,8 +197,8 @@ class WarnAboutBills implements ShouldQueueprivate function sendOverdueAlerts(User $user, array $overdue): void{if (count($overdue) > 0) {- Log::debug(sprintf('Will now send warning about overdue bill for user #%d.', $user->id));- event(new WarnUserAboutOverdueSubscriptions($user, $overdue));+ Log::debug(sprintf('Will now send warning about overdue subscription(s) for user #%d.', $user->id));+ event(new SubscriptionsAreOverdueForPayment($user, $overdue));}}}