From 9ebe17e770b4b8dbdc4c97a860173fda5161fd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Poirier=20Th=C3=A9or=C3=AAt?= Date: Thu, 25 Jan 2024 15:00:45 -0500 Subject: [PATCH] Bug: Istance must implement JsonSerializable If the interface is not implemented the jsonSerialize is never called --- lib/Braintree/Instance.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Braintree/Instance.php b/lib/Braintree/Instance.php index 6cbcc1ec..c4e5f91d 100644 --- a/lib/Braintree/Instance.php +++ b/lib/Braintree/Instance.php @@ -2,12 +2,14 @@ namespace Braintree; +use JsonSerializable; + /** * Braintree Class Instance template * * @abstract */ -abstract class Instance extends \stdClass +abstract class Instance extends \stdClass implements JsonSerializable { protected $_attributes = [];