File tree 2 files changed +37
-2
lines changed
2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ private function parseText(TokenIterator $tokens): Ast\PhpDoc\PhpDocTextNode
237
237
$ text .= $ tmpText ;
238
238
239
239
// stop if we're not at EOL - meaning it's the end of PHPDoc
240
- if (!$ tokens ->isCurrentTokenType (Lexer::TOKEN_PHPDOC_EOL )) {
240
+ if (!$ tokens ->isCurrentTokenType (Lexer::TOKEN_PHPDOC_EOL , Lexer:: TOKEN_CLOSE_PHPDOC )) {
241
241
break ;
242
242
}
243
243
@@ -293,7 +293,7 @@ private function parseOptionalDescriptionAfterDoctrineTag(TokenIterator $tokens)
293
293
$ text .= $ tmpText ;
294
294
295
295
// stop if we're not at EOL - meaning it's the end of PHPDoc
296
- if (!$ tokens ->isCurrentTokenType (Lexer::TOKEN_PHPDOC_EOL )) {
296
+ if (!$ tokens ->isCurrentTokenType (Lexer::TOKEN_PHPDOC_EOL , Lexer:: TOKEN_CLOSE_PHPDOC )) {
297
297
if (!$ tokens ->isPrecededByHorizontalWhitespace ()) {
298
298
return trim ($ text . $ this ->parseText ($ tokens )->text , " \t" );
299
299
}
Original file line number Diff line number Diff line change @@ -7547,6 +7547,41 @@ public function dataTextBetweenTagsBelongsToDescription(): iterable
7547
7547
new PhpDocTagNode ('@package ' , new GenericTagValueNode ('foo ' )),
7548
7548
]),
7549
7549
];
7550
+
7551
+ yield [
7552
+ '/** @deprecated in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7553
+ * Drupal 9 there will be no way to set the status and in Drupal 8 this
7554
+ * ability has been removed because mb_*() functions are supplied using
7555
+ * Symfony \'s polyfill. */ ' ,
7556
+ new PhpDocNode ([
7557
+ new PhpDocTagNode (
7558
+ '@deprecated ' ,
7559
+ new DeprecatedTagValueNode ('in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7560
+ Drupal 9 there will be no way to set the status and in Drupal 8 this
7561
+ ability has been removed because mb_*() functions are supplied using
7562
+ Symfony \'s polyfill. ' )
7563
+ ),
7564
+ ]),
7565
+ ];
7566
+
7567
+ yield [
7568
+ '/** @\ORM\Column() in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7569
+ * Drupal 9 there will be no way to set the status and in Drupal 8 this
7570
+ * ability has been removed because mb_*() functions are supplied using
7571
+ * Symfony \'s polyfill. */ ' ,
7572
+ new PhpDocNode ([
7573
+ new PhpDocTagNode (
7574
+ '@\ORM\Column ' ,
7575
+ new DoctrineTagValueNode (
7576
+ new DoctrineAnnotation ('@\ORM\Column ' , []),
7577
+ 'in Drupal 8.6.0 and will be removed before Drupal 9.0.0. In
7578
+ Drupal 9 there will be no way to set the status and in Drupal 8 this
7579
+ ability has been removed because mb_*() functions are supplied using
7580
+ Symfony \'s polyfill. '
7581
+ )
7582
+ ),
7583
+ ]),
7584
+ ];
7550
7585
}
7551
7586
7552
7587
/**
You can’t perform that action at this time.
0 commit comments