From 597aeb1246cf5c3ea591767d1ac63d4884d7baad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 30 Aug 2023 08:24:45 +0200 Subject: [PATCH] Fix the class synopsis of Throwable "ooexception" is rendered as a class, therefore interfaces should be marked up as "oointerface". --- build/gen_stub.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index c42e62557e3..19e79c79420 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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;