From 0da15de0217d84ad1e37c2e327595e57757aed2f Mon Sep 17 00:00:00 2001 From: Gert de Pagter Date: Thu, 14 Nov 2024 10:25:41 +0000 Subject: [PATCH] Add array return type on jsonSerialize --- src/Banking/Statement.php | 2 +- src/Banking/Transaction.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Banking/Statement.php b/src/Banking/Statement.php index d4643f6..0a9e63f 100644 --- a/src/Banking/Statement.php +++ b/src/Banking/Statement.php @@ -23,7 +23,7 @@ class Statement implements \JsonSerializable /** * @return array */ - public function jsonSerialize() + public function jsonSerialize(): array { return get_object_vars($this); } diff --git a/src/Banking/Transaction.php b/src/Banking/Transaction.php index bea9951..dd97b23 100644 --- a/src/Banking/Transaction.php +++ b/src/Banking/Transaction.php @@ -26,7 +26,7 @@ class Transaction implements \JsonSerializable /** * @return array */ - public function jsonSerialize() + public function jsonSerialize(): array { return get_object_vars($this); }