Skip to content

Commit 597aeb1

Browse files
committedAug 30, 2023
Fix the class synopsis of Throwable
"ooexception" is rendered as a class, therefore interfaces should be marked up as "oointerface".
1 parent 300ad65 commit 597aeb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎build/gen_stub.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2815,7 +2815,7 @@ public function getClassSynopsisElement(DOMDocument $doc, array $classMap, itera
28152815
$classSynopsis = $doc->createElement("classsynopsis");
28162816
$classSynopsis->setAttribute("class", $this->type === "interface" ? "interface" : "class");
28172817

2818-
$exceptionOverride = $this->isException($classMap) ? "exception" : null;
2818+
$exceptionOverride = $this->type === "class" && $this->isException($classMap) ? "exception" : null;
28192819
$ooElement = self::createOoElement($doc, $this, $exceptionOverride, true, null, 4);
28202820
if (!$ooElement) {
28212821
return null;

0 commit comments

Comments
 (0)