Skip to content

Commit

Permalink
fix: JsonSerializable stan
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Dec 25, 2023
1 parent 827171e commit 764943a
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 11 deletions.
6 changes: 5 additions & 1 deletion src/Atom/Authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Atom/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Atom/Contributors.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Atom/Entries.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Atom/Links.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Json/Attachments.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ final private function __construct(Attachment ...$attachments)
$this->collection = $attachments;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Json/Authors.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ final private function __construct(Author ...$authors)
$this->collection = $authors;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Json/CustomObjects.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ final private function __construct(CustomObject ...$objects)
$this->collection = $objects;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Json/Hubs.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ final private function __construct(Hub ...$hubs)
$this->collection = $hubs;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Json/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ final private function __construct(Item ...$items)
$this->collection = $items;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down
6 changes: 5 additions & 1 deletion src/Rss/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ public function __toString(): string
return $compiled;
}

/** JsonSerializable **/
/**
* JsonSerializable
*
* @return array<string, string>
**/
public function jsonSerialize(): array
{
return $this->collection;
Expand Down

0 comments on commit 764943a

Please sign in to comment.