From 5a3e22c2133794c643e5457f4382d71fe435d728 Mon Sep 17 00:00:00 2001 From: func0der <529819+func0der@users.noreply.github.com> Date: Thu, 19 Jun 2025 15:09:12 +0200 Subject: [PATCH] trim_empty_docblock_whitespaces Trim whitespaces from phpdocs without content (#28) --- src/Barryvdh/Reflection/DocBlock/Tag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Barryvdh/Reflection/DocBlock/Tag.php b/src/Barryvdh/Reflection/DocBlock/Tag.php index 62cfe16..99e15c6 100644 --- a/src/Barryvdh/Reflection/DocBlock/Tag.php +++ b/src/Barryvdh/Reflection/DocBlock/Tag.php @@ -409,6 +409,6 @@ class Tag implements \Reflector */ public function __toString() { - return "@{$this->getName()} {$this->getContent()}"; + return trim("@{$this->getName()} {$this->getContent()}"); } }