From 3c50b27858cef56a010fb0537c499aca92390546 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 1 May 2024 08:30:41 +1000 Subject: [PATCH] minor fixes --- app/Exceptions/Handler.php | 1 - app/Export/CSV/InvoiceExport.php | 1 + app/PaymentDrivers/Stripe/UpdatePaymentMethods.php | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 6e5e242a4508..6587ef6d02e4 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -67,7 +67,6 @@ class Handler extends ExceptionHandler ]; protected $hostedDontReport = [ - PDOException::class, MaxAttemptsExceededException::class, CommandNotFoundException::class, ValidationException::class, diff --git a/app/Export/CSV/InvoiceExport.php b/app/Export/CSV/InvoiceExport.php index 674159294671..5d9fd4442253 100644 --- a/app/Export/CSV/InvoiceExport.php +++ b/app/Export/CSV/InvoiceExport.php @@ -108,6 +108,7 @@ class InvoiceExport extends BaseExport //load the CSV document from a string $this->csv = Writer::createFromString(); + \League\Csv\CharsetConverter::addTo($this->csv, 'UTF-8', 'UTF-8'); //insert the header $this->csv->insertOne($this->buildHeader()); diff --git a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php index acb5514834ce..7777da7b7e17 100644 --- a/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php +++ b/app/PaymentDrivers/Stripe/UpdatePaymentMethods.php @@ -145,7 +145,7 @@ class UpdatePaymentMethods public function importBankAccounts($customer, $client) { - $sources = $customer->sources; + $sources = $customer->sources ?? false; if (!$customer || is_null($sources) || !property_exists($sources, 'data')) { return;