Skip to content

Commit

Permalink
fix: RSS Items
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbruce committed Dec 25, 2023
1 parent 2527b89 commit 5e8607c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Rss/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class Items implements Traversable, Iterator, Countable, Stringable
{
private array $collection = [];

private int $position = 0;

public static function create(Item ...$items): self
{
return new self(...$items);
Expand All @@ -34,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 5e8607c

Please sign in to comment.