File tree 2 files changed +14
-8
lines changed
src/DocBlock/Tags/Factory
2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 48
48
with :
49
49
composer-root-version : " 5.x-dev"
50
50
upcoming-releases : true
51
+
52
+ integration-tests :
53
+ name : " Integration test"
54
+ uses :
" phpDocumentor/.github/.github/workflows/[email protected] "
55
+ with :
56
+ composer-root-version : " 5.x-dev"
57
+ upcoming-releases : true
58
+ test-suite : " integration"
Original file line number Diff line number Diff line change @@ -73,15 +73,13 @@ public function __construct(PHPStanFactory ...$factories)
73
73
74
74
public function create (string $ tagLine , ?TypeContext $ context = null ): Tag
75
75
{
76
- $ tokens = $ this ->tokenizeLine ($ tagLine );
76
+ $ tokens = $ this ->tokenizeLine ($ tagLine . "\n" );
77
77
$ 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
+ );
85
83
}
86
84
87
85
if ($ context === null ) {
You can’t perform that action at this time.
0 commit comments