File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77use TypeLang \PhpDocParser \DocBlock \Description ;
88use TypeLang \PhpDocParser \DocBlock \DescriptionFactoryInterface ;
9- use TypeLang \PhpDocParser \DocBlock \Tag \TagInterface as TReturn ;
109use TypeLang \PhpDocParser \DocBlock \TagFactoryInterface ;
1110
1211/**
Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ public function getIterator(): \Traversable
4444 foreach ($ this ->tags as $ tag ) {
4545 yield $ tag ;
4646
47- if ($ tag ->getDescription () instanceof TagProviderInterface) {
48- yield from $ tag ->getDescription ();
47+ $ description = $ tag ->getDescription ();
48+
49+ if ($ description instanceof TagProviderInterface) {
50+ yield from $ description ;
4951 }
5052 }
5153 }
Original file line number Diff line number Diff line change 4848use TypeLang \PhpDocParser \DocBlock \TagFactoryInterface ;
4949use JetBrains \PhpStorm \Language ;
5050
51+ /**
52+ * @psalm-suppress UndefinedAttributeClass : JetBrains language attribute may not be available
53+ */
5154final class DocBlockFactory implements DocBlockFactoryInterface
5255{
5356 /**
Original file line number Diff line number Diff line change 66
77use JetBrains \PhpStorm \Language ;
88
9+ /**
10+ * @psalm-suppress UndefinedAttributeClass : JetBrains language attribute may not be available
11+ */
912interface DocBlockFactoryInterface
1013{
1114 /**
You can’t perform that action at this time.
0 commit comments