We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c6380d commit cffcd07Copy full SHA for cffcd07
src/Alias.php
@@ -488,6 +488,15 @@ public function getPhpDocTemplates($prefix = "\t\t")
488
$reflection = new ReflectionClass($class);
489
$traits = collect($reflection->getTraitNames());
490
491
+ $phpdoc = new DocBlock($reflection);
492
+ $templates = $phpdoc->getTagsByName('template');
493
+ /** @var DocBlock\Tag\TemplateTag $template */
494
+ foreach ($templates as $template) {
495
+ $template->setBound('static');
496
+ $template->setDocBlock($templateDoc);
497
+ $templateDoc->appendTag($template);
498
+ }
499
+
500
foreach ($traits as $trait) {
501
$phpdoc = new DocBlock(new ReflectionClass($trait));
502
$templates = $phpdoc->getTagsByName('template');
0 commit comments