From 0927b0c8aef2972ae7564523441c3835d7cebd73 Mon Sep 17 00:00:00 2001 From: James Cole Date: Tue, 3 Mar 2020 19:36:03 +0100 Subject: [PATCH] Accept strings like a good boy. --- app/Api/V1/Requests/TransactionStoreRequest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Api/V1/Requests/TransactionStoreRequest.php b/app/Api/V1/Requests/TransactionStoreRequest.php index 15d8bcfae8..faec8e3c62 100644 --- a/app/Api/V1/Requests/TransactionStoreRequest.php +++ b/app/Api/V1/Requests/TransactionStoreRequest.php @@ -263,11 +263,11 @@ class TransactionStoreRequest extends Request 'tags' => $this->arrayFromValue($object['tags']), // all custom fields: - 'internal_reference' => $this->stringFromValue($object['internal_reference']), - 'external_id' => $this->stringFromValue($object['external_id']), + 'internal_reference' => $this->stringFromValue((string)$object['internal_reference']), + 'external_id' => $this->stringFromValue((string)$object['external_id']), 'original_source' => sprintf('ff3-v%s|api-v%s', config('firefly.version'), config('firefly.api_version')), 'recurrence_id' => $this->integerFromValue($object['recurrence_id']), - 'bunq_payment_id' => $this->stringFromValue($object['bunq_payment_id']), + 'bunq_payment_id' => $this->stringFromValue((string)$object['bunq_payment_id']), 'sepa_cc' => $this->stringFromValue($object['sepa_cc']), 'sepa_ct_op' => $this->stringFromValue($object['sepa_ct_op']),