From f588764292d92ee85740e62c1a863a5a3a0afdd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Wed, 8 Sep 2021 10:40:14 +0200 Subject: [PATCH] Improve class synopsis root element generation Besides classrefs, we also have exceptionrefs. Also, the 4th capture group replacement used to be unintentionally duplicated. --- build/gen_stub.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index c606fe955bf..13cf57c3b0a 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -2911,13 +2911,15 @@ function replaceClassSynopses(string $targetDirectory, array $classMap): array $replacedXml = preg_replace( [ "/REPLACED-ENTITY-([A-Za-z0-9._{}%-]+?;)/", - "//i", - "//i", + "//i", + "//i", + "//i", ], [ "&$1", - "", - "", + "", + "", + "", ], $replacedXml );