1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01: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:
Máté Kocsis
2023-08-30 08:24:45 +02:00
parent 300ad65c7c
commit 597aeb1246

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;