From 7f83b0f7073eca0e6d7c150243ae2c8700f4a846 Mon Sep 17 00:00:00 2001 From: gaobinzhan Date: Fri, 5 Mar 2021 18:05:39 +0800 Subject: [PATCH] fix: annotation doc --- src/Utility/AnnotationDoc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Utility/AnnotationDoc.php b/src/Utility/AnnotationDoc.php index 129b88b..8e7a4b5 100644 --- a/src/Utility/AnnotationDoc.php +++ b/src/Utility/AnnotationDoc.php @@ -231,7 +231,12 @@ function buildAnnotationHtml(string $dirOrFile): array } } } - $htmls[$currentGroupName] = $html; + + if (array_key_exists($currentGroupName, $htmls)) { + $htmls[$currentGroupName] .= $html; + } else { + $htmls[$currentGroupName] = $html; + } } ksort($htmls);