mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add support for generating parameter attributes for the manual (#14270)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user