1
0
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:
Máté Kocsis
2024-05-20 21:03:19 +02:00
committed by GitHub
parent 08e2c6fb7b
commit 78f72cffa4

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