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:
parent
9d1b620f55
commit
87d7ca8672
@ -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])) {
|
||||
|
Loading…
Reference in New Issue
Block a user