diff --git a/src/DocBlock/Tags/Author.php b/src/DocBlock/Tags/Author.php index 639a5df..ae09ecf 100644 --- a/src/DocBlock/Tags/Author.php +++ b/src/DocBlock/Tags/Author.php @@ -79,7 +79,7 @@ final class Author extends BaseTag implements Factory\StaticMethod $authorEmail = ''; } - $authorName = (string) $this->authorName; + $authorName = $this->authorName; return $authorName . ($authorEmail !== '' ? ($authorName !== '' ? ' ' : '') . $authorEmail : ''); } diff --git a/src/DocBlock/Tags/Example.php b/src/DocBlock/Tags/Example.php index afe9a64..825355a 100644 --- a/src/DocBlock/Tags/Example.php +++ b/src/DocBlock/Tags/Example.php @@ -148,7 +148,7 @@ final class Example implements Tag, Factory\StaticMethod */ public function __toString(): string { - $filePath = (string) $this->filePath; + $filePath = $this->filePath; $isDefaultLine = $this->startingLine === 1 && $this->lineCount === 0; $startingLine = !$isDefaultLine ? (string) $this->startingLine : ''; $lineCount = !$isDefaultLine ? (string) $this->lineCount : ''; diff --git a/src/DocBlock/Tags/Link.php b/src/DocBlock/Tags/Link.php index 0bc6b43..ee242e3 100644 --- a/src/DocBlock/Tags/Link.php +++ b/src/DocBlock/Tags/Link.php @@ -71,7 +71,7 @@ final class Link extends BaseTag implements Factory\StaticMethod $description = ''; } - $link = (string) $this->link; + $link = $this->link; return $link . ($description !== '' ? ($link !== '' ? ' ' : '') . $description : ''); } diff --git a/src/DocBlock/Tags/Method.php b/src/DocBlock/Tags/Method.php index e20559e..32e99f7 100644 --- a/src/DocBlock/Tags/Method.php +++ b/src/DocBlock/Tags/Method.php @@ -228,7 +228,7 @@ final class Method extends BaseTag implements Factory\StaticMethod $returnType = (string) $this->returnType; - $methodName = (string) $this->methodName; + $methodName = $this->methodName; return $static . ($returnType !== '' ? ($static !== '' ? ' ' : '') . $returnType : '')