From 13f952f182fc5d563ecb86d40bbb12311af3a95b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 1 Oct 2016 09:41:16 +0200 Subject: [PATCH] Fix trim when null [skip ci] --- app/Http/Requests/JournalFormRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Requests/JournalFormRequest.php b/app/Http/Requests/JournalFormRequest.php index 49bb2e69a3..abce71e17c 100644 --- a/app/Http/Requests/JournalFormRequest.php +++ b/app/Http/Requests/JournalFormRequest.php @@ -64,8 +64,8 @@ class JournalFormRequest extends Request 'due_date' => $this->getDateOrNull('due_date'), 'payment_date' => $this->getDateOrNull('payment_date'), 'invoice_date' => $this->getDateOrNull('invoice_date'), - 'internal_reference' => trim($this->get('internal_reference')), - 'notes' => trim($this->get('notes')), + 'internal_reference' => trim(strval($this->get('internal_reference'))), + 'notes' => trim(strval($this->get('notes'))), ]; }