diff --git a/build/gen_stub.php b/build/gen_stub.php index 2edc7fc1045..9b1545c0ea2 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -2101,6 +2101,13 @@ OUPUT_EXAMPLE } $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);