Add support for generating parameter attributes for the manual (#14270)

This commit is contained in:
Máté Kocsis 2024-05-20 21:03:19 +02:00 committed by GitHub
parent 08e2c6fb7b
commit 78f72cffa4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);