minor fixes

This commit is contained in:
David Bomba 2024-05-01 08:30:41 +10:00
parent 0c95361116
commit 3c50b27858
3 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,6 @@ class Handler extends ExceptionHandler
];
protected $hostedDontReport = [
PDOException::class,
MaxAttemptsExceededException::class,
CommandNotFoundException::class,
ValidationException::class,

View File

@ -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());

View File

@ -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;