From 043cc121b2fba7329aab4ba3d4bae4218f0738ab Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 9 Mar 2023 13:56:34 +1100 Subject: [PATCH] Refactor constructor --- app/Jobs/Invoice/UpdateReminders.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Jobs/Invoice/UpdateReminders.php b/app/Jobs/Invoice/UpdateReminders.php index dee22412f3f3..026035ceccfd 100644 --- a/app/Jobs/Invoice/UpdateReminders.php +++ b/app/Jobs/Invoice/UpdateReminders.php @@ -24,11 +24,8 @@ class UpdateReminders implements ShouldQueue { use Dispatchable, InteractsWithQueue, Queueable, SerializesModels; - public Company $company; - - public function __construct(Company $company) + public function __construct(public Company $company) { - $this->company = $company; } /**