From 764943a2307f25e50e4292292954fc8db4d9bf77 Mon Sep 17 00:00:00 2001 From: Josh Bruce Date: Mon, 25 Dec 2023 12:58:52 -0500 Subject: [PATCH] fix: JsonSerializable stan --- src/Atom/Authors.php | 6 +++++- src/Atom/Categories.php | 6 +++++- src/Atom/Contributors.php | 6 +++++- src/Atom/Entries.php | 6 +++++- src/Atom/Links.php | 6 +++++- src/Json/Attachments.php | 6 +++++- src/Json/Authors.php | 6 +++++- src/Json/CustomObjects.php | 6 +++++- src/Json/Hubs.php | 6 +++++- src/Json/Items.php | 6 +++++- src/Rss/Categories.php | 6 +++++- 11 files changed, 55 insertions(+), 11 deletions(-) diff --git a/src/Atom/Authors.php b/src/Atom/Authors.php index f7e2578..111ea9c 100644 --- a/src/Atom/Authors.php +++ b/src/Atom/Authors.php @@ -36,7 +36,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Atom/Categories.php b/src/Atom/Categories.php index 87779af..752137b 100644 --- a/src/Atom/Categories.php +++ b/src/Atom/Categories.php @@ -36,7 +36,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Atom/Contributors.php b/src/Atom/Contributors.php index 1d0de2d..dde8e35 100644 --- a/src/Atom/Contributors.php +++ b/src/Atom/Contributors.php @@ -36,7 +36,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Atom/Entries.php b/src/Atom/Entries.php index efe1aac..193d4e8 100644 --- a/src/Atom/Entries.php +++ b/src/Atom/Entries.php @@ -50,7 +50,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Atom/Links.php b/src/Atom/Links.php index ac75ecb..7b10b13 100644 --- a/src/Atom/Links.php +++ b/src/Atom/Links.php @@ -36,7 +36,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Json/Attachments.php b/src/Json/Attachments.php index b60d088..1e4a370 100644 --- a/src/Json/Attachments.php +++ b/src/Json/Attachments.php @@ -26,7 +26,11 @@ final private function __construct(Attachment ...$attachments) $this->collection = $attachments; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Json/Authors.php b/src/Json/Authors.php index f444d15..797c516 100644 --- a/src/Json/Authors.php +++ b/src/Json/Authors.php @@ -26,7 +26,11 @@ final private function __construct(Author ...$authors) $this->collection = $authors; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Json/CustomObjects.php b/src/Json/CustomObjects.php index e1a4e1a..b140526 100644 --- a/src/Json/CustomObjects.php +++ b/src/Json/CustomObjects.php @@ -26,7 +26,11 @@ final private function __construct(CustomObject ...$objects) $this->collection = $objects; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Json/Hubs.php b/src/Json/Hubs.php index 989fd00..61f6378 100644 --- a/src/Json/Hubs.php +++ b/src/Json/Hubs.php @@ -26,7 +26,11 @@ final private function __construct(Hub ...$hubs) $this->collection = $hubs; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Json/Items.php b/src/Json/Items.php index c4b594b..fe27790 100644 --- a/src/Json/Items.php +++ b/src/Json/Items.php @@ -26,7 +26,11 @@ final private function __construct(Item ...$items) $this->collection = $items; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection; diff --git a/src/Rss/Categories.php b/src/Rss/Categories.php index 989763c..f546481 100644 --- a/src/Rss/Categories.php +++ b/src/Rss/Categories.php @@ -36,7 +36,11 @@ public function __toString(): string return $compiled; } - /** JsonSerializable **/ + /** + * JsonSerializable + * + * @return array + **/ public function jsonSerialize(): array { return $this->collection;