mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
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:
parent
300ad65c7c
commit
597aeb1246
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user