mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Add support for generating parameter attributes for the manual (#14270)
This commit is contained in:
parent
08e2c6fb7b
commit
78f72cffa4
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue