Skip to content

Commit

Permalink
fix: #10239
Browse files Browse the repository at this point in the history
  • Loading branch information
ging-dev committed Sep 30, 2023
1 parent 7d8d74d commit 35278c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Psalm/Internal/Diff/FileStatementsDiffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,12 @@ static function (
$b_code,
);

$keep = [...$keep, ...$class_keep[0]];
$keep_signature = [...$keep_signature, ...$class_keep[1]];
if ($diff_elem->old->getDocComment() !== $diff_elem->new->getDocComment()) {
$keep_signature = [...$keep_signature, ...$class_keep[0]];
} else {
$keep = [...$keep, ...$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]];
$deletion_ranges = [...$deletion_ranges, ...$class_keep[4]];
Expand Down

0 comments on commit 35278c8

Please sign in to comment.