Skip to content

Commit 3c6590a

Browse files
committed
Add support for extending multiple interfaces in the manual
After php/phd#75
1 parent ddd9a08 commit 3c6590a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/gen_stub.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -2803,6 +2803,9 @@ public function getClassSynopsisDocument(array $classMap, iterable $allConstInfo
28032803
public function getClassSynopsisElement(DOMDocument $doc, array $classMap, iterable $allConstInfos): ?DOMElement {
28042804

28052805
$classSynopsis = $doc->createElement("classsynopsis");
2806+
if ($this->type === "interface") {
2807+
$classSynopsis->setAttribute("class", "interface");
2808+
}
28062809
$classSynopsis->appendChild(new DOMText("\n "));
28072810

28082811
$ooElement = self::createOoElement($doc, $this, true, false, false, 4);
@@ -2831,9 +2834,9 @@ public function getClassSynopsisElement(DOMDocument $doc, array $classMap, itera
28312834
$ooElement = self::createOoElement(
28322835
$doc,
28332836
$parentInfo,
2834-
$this->type === "interface",
28352837
false,
2836-
$k === 0,
2838+
false,
2839+
$k === 0 && $this->type === "class",
28372840
5
28382841
);
28392842
if (!$ooElement) {

0 commit comments

Comments
 (0)