From 87d7ca86728d873549bdcf46ec5898068692a11a Mon Sep 17 00:00:00 2001 From: Brown Date: Mon, 3 Jun 2019 12:13:38 -0400 Subject: [PATCH] Trim lagging asterisks --- src/Psalm/DocComment.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Psalm/DocComment.php b/src/Psalm/DocComment.php index 3c391bf4f..14da97938 100644 --- a/src/Psalm/DocComment.php +++ b/src/Psalm/DocComment.php @@ -199,6 +199,10 @@ class DocComment list($type) = $type_info; list($data, $data_offset) = $data_info; + if (strpos($data, '*')) { + $data = rtrim(preg_replace('/^[ \t]*\*\s*$/', '', $data)); + } + $docblock = str_replace($full_match, '', $docblock); if (empty($special[$type])) {