1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00
This commit is contained in:
ging-dev 2023-09-30 10:36:21 +07:00
parent 7d8d74d32a
commit f8c225c576

View File

@ -115,7 +115,11 @@ class FileStatementsDiffer extends AstDiffer
$b_code,
);
$keep = [...$keep, ...$class_keep[0]];
if ($diff_elem->old->getDocComment() === $diff_elem->new->getDocComment()) {
$keep = [...$keep, ...$class_keep[0]];
} else {
$keep_signature = [...$keep_signature, ...$class_keep[0]];
}
$keep_signature = [...$keep_signature, ...$class_keep[1]];
$add_or_delete = [...$add_or_delete, ...$class_keep[2]];
$diff_map = [...$diff_map, ...$class_keep[3]];