Skip to content

Commit 78f72cf

Browse files
authored
Add support for generating parameter attributes for the manual (#14270)
1 parent 08e2c6f commit 78f72cf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/gen_stub.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,13 @@ public function getMethodSynopsisElement(array $funcMap, array $aliasMap, DOMDoc
21012101
}
21022102

21032103
$methodSynopsis->appendChild($methodparam);
2104+
foreach ($arg->attributes as $attribute) {
2105+
$attribute = $doc->createElement("modifier", "#[\\" . $attribute->class . "]");
2106+
$attribute->setAttribute("role", "attribute");
2107+
2108+
$methodparam->appendChild($attribute);
2109+
}
2110+
21042111
$methodparam->appendChild($arg->getMethodSynopsisType()->getTypeForDoc($doc));
21052112

21062113
$parameter = $doc->createElement('parameter', $arg->name);

0 commit comments

Comments
 (0)