mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add return after every special type
This commit is contained in:
parent
391696bc83
commit
7c261d7d1f
@ -520,10 +520,16 @@ class CommentChecker
|
||||
/** @var int */
|
||||
$special_type_width = max($special_type_lengths) + 1;
|
||||
|
||||
$special_types = count($parsed_doc_comment['specials']);
|
||||
|
||||
foreach ($parsed_doc_comment['specials'] as $type => $lines) {
|
||||
foreach ($lines as $line) {
|
||||
$doc_comment_text .= $left_padding . ' * @' . str_pad($type, $special_type_width) . $line . PHP_EOL;
|
||||
}
|
||||
|
||||
if ($special_types-- > 1) {
|
||||
$doc_comment_text .= $left_padding . ' *'. PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user