Skip to content

Retarget RemoveNullFromNullableCollectionTypeRector to single Class_ node - #535

Merged
TomasVotruba merged 2 commits into
mainfrom
retarget-remove-null-collection-to-class
Oct 18, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
retarget-remove-null-collection-to-class

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Retargets the rule from two node types (ClassMethod, Property) to a single Class_ node.

  • iterate class methods and properties from one Class_ pass
  • move the test-class skip up to class level, so it guards both methods and properties
  • simpler code sample: nullable property with default null -> strict Collection

@TomasVotruba
TomasVotruba merged commit ca23ca9 into main Oct 18, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the retarget-remove-null-collection-to-class branch October 18, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant