Fix the class synopsis of Throwable

"ooexception" is rendered as a class, therefore interfaces should be marked up as "oointerface".
This commit is contained in:
Máté Kocsis 2023-08-30 08:24:45 +02:00
parent 300ad65c7c
commit 597aeb1246
No known key found for this signature in database
GPG Key ID: FD055E41728BF310

View File

@ -2815,7 +2815,7 @@ class ClassInfo {
$classSynopsis = $doc->createElement("classsynopsis");
$classSynopsis->setAttribute("class", $this->type === "interface" ? "interface" : "class");
$exceptionOverride = $this->isException($classMap) ? "exception" : null;
$exceptionOverride = $this->type === "class" && $this->isException($classMap) ? "exception" : null;
$ooElement = self::createOoElement($doc, $this, $exceptionOverride, true, null, 4);
if (!$ooElement) {
return null;