Skip to content

Commit

Permalink
Fix incorrect result after using RemoveByType in PhpDocInfo (#6301)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlos-granados authored Sep 13, 2024
1 parent 7f9c6b0 commit 9620889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public function removeByType(string $typeToRemove, ?string $name = null): bool
$name,
'$'
)) {
return null;
return PhpDocNodeTraverser::DONT_TRAVERSE_CHILDREN;
}

$hasChanged = true;
Expand Down

0 comments on commit 9620889

Please sign in to comment.