Skip to content

Commit

Permalink
Add support for generating parameter attributes for the manual (#14270)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate authored May 20, 2024
1 parent 08e2c6f commit 78f72cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,13 @@ public function getMethodSynopsisElement(array $funcMap, array $aliasMap, DOMDoc
}

$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);
Expand Down

0 comments on commit 78f72cf

Please sign in to comment.