File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
src/DocBlock/Tags/Factory Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,13 @@ public function __construct(PHPStanFactory ...$factories)
7373
7474 public function create (string $ tagLine , ?TypeContext $ context = null ): Tag
7575 {
76- $ tokens = $ this ->tokenizeLine ($ tagLine );
76+ $ tokens = $ this ->tokenizeLine ($ tagLine . "\n" );
7777 $ ast = $ this ->parser ->parseTag ($ tokens );
78- if (class_exists (ParserConfig::class) === false ) {
79- if (property_exists ($ ast ->value , 'description ' ) === true ) {
80- $ ast ->value ->setAttribute (
81- 'description ' ,
82- $ ast ->value ->description . $ tokens ->joinUntil (Lexer::TOKEN_END )
83- );
84- }
78+ if (property_exists ($ ast ->value , 'description ' ) === true ) {
79+ $ ast ->value ->setAttribute (
80+ 'description ' ,
81+ rtrim ($ ast ->value ->description . $ tokens ->joinUntil (Lexer::TOKEN_END ), "\n" )
82+ );
8583 }
8684
8785 if ($ context === null ) {
You can’t perform that action at this time.
0 commit comments