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 dbe2820
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Psalm/Internal/Diff/FileStatementsDiffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ static function (
$b_code,
);

$keep = [...$keep, ...$class_keep[0]];
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]];
Expand Down

0 comments on commit dbe2820

Please sign in to comment.