diff --git a/src/DocBlock/Tags/Author.php b/src/DocBlock/Tags/Author.php index 41a2788..29d7f1d 100644 --- a/src/DocBlock/Tags/Author.php +++ b/src/DocBlock/Tags/Author.php @@ -73,7 +73,7 @@ final class Author extends BaseTag implements Factory\StaticMethod */ public function __toString() { - return $this->authorName . '<' . $this->authorEmail . '>'; + return $this->authorName . (strlen($this->authorEmail) ? ' <' . $this->authorEmail . '>' : ''); } /**