mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
fix: #10239
This commit is contained in:
parent
7d8d74d32a
commit
f8c225c576
@ -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]];
|
||||
|
Loading…
Reference in New Issue
Block a user