diff --git a/build/gen_stub.php b/build/gen_stub.php index 2edc7fc10450a..9b1545c0ea29f 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -2101,6 +2101,13 @@ public function getMethodSynopsisElement(array $funcMap, array $aliasMap, DOMDoc } $methodSynopsis->appendChild($methodparam); + foreach ($arg->attributes as $attribute) { + $attribute = $doc->createElement("modifier", "#[\\" . $attribute->class . "]"); + $attribute->setAttribute("role", "attribute"); + + $methodparam->appendChild($attribute); + } + $methodparam->appendChild($arg->getMethodSynopsisType()->getTypeForDoc($doc)); $parameter = $doc->createElement('parameter', $arg->name);