1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Trim lagging asterisks

This commit is contained in:
Brown 2019-06-03 12:13:38 -04:00
parent 9d1b620f55
commit 87d7ca8672

View File

@ -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])) {