diff --git a/app/Services/PdfMaker/Design.php b/app/Services/PdfMaker/Design.php index b3b196d00de4..dec4e6518dbf 100644 --- a/app/Services/PdfMaker/Design.php +++ b/app/Services/PdfMaker/Design.php @@ -50,10 +50,8 @@ class Design extends BaseDesign /** Construct options */ public $options; - /** @var Invoice[] */ public $invoices; - /** @var Payment[] */ public $payments; public $settings_object; diff --git a/app/Services/Quote/ConvertQuote.php b/app/Services/Quote/ConvertQuote.php index 7d8347e79f18..e3ee0ebab9c5 100644 --- a/app/Services/Quote/ConvertQuote.php +++ b/app/Services/Quote/ConvertQuote.php @@ -80,7 +80,6 @@ class ConvertQuote /** * Only create the invitations that are defined on the quote. * - * @return Invoice $invoice */ private function createConversionInvitations($invoice, $quote) { diff --git a/app/Services/Quote/QuoteService.php b/app/Services/Quote/QuoteService.php index 8a8174c3ea4c..3a069ee1c75f 100644 --- a/app/Services/Quote/QuoteService.php +++ b/app/Services/Quote/QuoteService.php @@ -129,7 +129,8 @@ class QuoteService /** * Sometimes we need to refresh the * PDF when it is updated etc. - * @return InvoiceService + * + * @return QuoteService */ public function touchPdf($force = false) { diff --git a/app/Services/Subscription/SubscriptionService.php b/app/Services/Subscription/SubscriptionService.php index c4f3ff7bc260..7f74fcb9be46 100644 --- a/app/Services/Subscription/SubscriptionService.php +++ b/app/Services/Subscription/SubscriptionService.php @@ -840,7 +840,6 @@ class SubscriptionService * Get the single charge products for the * subscription * - * @return ?Product Collection */ public function products() { @@ -859,7 +858,6 @@ class SubscriptionService * Get the recurring products for the * subscription * - * @return ?Product Collection */ public function recurring_products() { diff --git a/app/Transformers/CompanyUserTransformer.php b/app/Transformers/CompanyUserTransformer.php index 720a247f7e30..82295aa3ee83 100644 --- a/app/Transformers/CompanyUserTransformer.php +++ b/app/Transformers/CompanyUserTransformer.php @@ -42,8 +42,8 @@ class CompanyUserTransformer extends EntityTransformer return [ 'permissions' => $company_user->permissions ?: '', - 'notifications' => (object) $company_user->notifications ?: $blank_obj, - 'settings' => (object) $company_user->settings ?: $blank_obj, + 'notifications' => $company_user->notifications ? (object) $company_user->notifications : $blank_obj, + 'settings' => $company_user->settings ? (object) $company_user->settings : $blank_obj, 'is_owner' => (bool) $company_user->is_owner, 'is_admin' => (bool) $company_user->is_admin, 'is_locked' => (bool) $company_user->is_locked, diff --git a/app/Transformers/CreditTransformer.php b/app/Transformers/CreditTransformer.php index 42e247d1c35a..6dc1b4ee9c8f 100644 --- a/app/Transformers/CreditTransformer.php +++ b/app/Transformers/CreditTransformer.php @@ -80,7 +80,6 @@ class CreditTransformer extends EntityTransformer 'amount' => (float) $credit->amount, 'balance' => (float) $credit->balance, 'client_id' => (string) $this->encodePrimaryKey($credit->client_id), - 'vendor_id' => (string) $this->encodePrimaryKey($credit->vendor_id), 'status_id' => (string) ($credit->status_id ?: 1), 'design_id' => (string) $this->encodePrimaryKey($credit->design_id), 'created_at' => (int) $credit->created_at, diff --git a/app/Transformers/RecurringInvoiceTransformer.php b/app/Transformers/RecurringInvoiceTransformer.php index b5db046192a0..57350a213238 100644 --- a/app/Transformers/RecurringInvoiceTransformer.php +++ b/app/Transformers/RecurringInvoiceTransformer.php @@ -137,7 +137,6 @@ class RecurringInvoiceTransformer extends EntityTransformer 'due_date_days' => (string) $invoice->due_date_days ?: '', 'paid_to_date' => (float) $invoice->paid_to_date, 'subscription_id' => (string) $this->encodePrimaryKey($invoice->subscription_id), - 'recurring_dates' => (array) [], ]; if (request()->has('show_dates') && request()->query('show_dates') == 'true') { diff --git a/psalm.xml b/psalm.xml index 52f15a658480..629a6cb49156 100644 --- a/psalm.xml +++ b/psalm.xml @@ -57,6 +57,16 @@ + + + + + + + + + +