Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[code-quality] Add NarrowUnusedSetUpDefinedPropertyRector #388

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

TomasVotruba
Copy link
Member

  • misc
  • [code-quality] Add NarrowUnusedSetUpDefinedPropertyRector

@TomasVotruba TomasVotruba changed the title tv narrow setup defined properties [code-quality] Add NarrowUnusedSetUpDefinedPropertyRector Nov 3, 2024
@TomasVotruba TomasVotruba force-pushed the tv-narrow-setup-defined-properties branch from 6920fe0 to 28df854 Compare November 3, 2024 23:20
@TomasVotruba TomasVotruba force-pushed the tv-narrow-setup-defined-properties branch from 28df854 to c38e16a Compare November 3, 2024 23:23
@TomasVotruba TomasVotruba enabled auto-merge (squash) November 3, 2024 23:23
@TomasVotruba TomasVotruba merged commit 501c87a into main Nov 3, 2024
6 checks passed
@TomasVotruba TomasVotruba deleted the tv-narrow-setup-defined-properties branch November 3, 2024 23:26
Comment on lines +111 to +113
if (! $this->isPropertyUsedOutsideSetUpClassMethod($node, $setUpClassMethod, $property)) {
continue;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the check is flipped, continue should check when property is used

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, it seems fixed at f24bef5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants