diff --git a/src/VCardsCollection.php b/src/VCardsCollection.php index be67c7a..0556cd3 100644 --- a/src/VCardsCollection.php +++ b/src/VCardsCollection.php @@ -52,12 +52,13 @@ public function first(): ?AbstractVCard return $this->vCards[0] ?? null; } - public function __toString() :string + public function __toString(): string { $collectionString = ''; - foreach($this->vCards as $vCard){ + foreach ($this->vCards as $vCard) { $collectionString .= (string) $vCard; } + return $collectionString; }