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

Add PHPUnit 9 annotations support detectoin in "custom-rule" command, add RectorConfig::withPreparedSets() #5506

Merged
merged 2 commits into from
Jan 26, 2024

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jan 26, 2024

No description provided.

@TomasVotruba TomasVotruba changed the title tv data provider custom rules Add PHPUnit 9 annotations support detectoin in "custom-rule" command Jan 26, 2024
@TomasVotruba TomasVotruba changed the title Add PHPUnit 9 annotations support detectoin in "custom-rule" command Add PHPUnit 9 annotations support detectoin in "custom-rule" command, add RectorConfig::withPreparedSets() Jan 26, 2024
@TomasVotruba TomasVotruba enabled auto-merge (squash) January 26, 2024 21:39
@TomasVotruba TomasVotruba merged commit a69e1ff into main Jan 26, 2024
40 checks passed
@TomasVotruba TomasVotruba deleted the tv-data-provider-custom-rules branch January 26, 2024 21:40
@@ -230,6 +231,56 @@ public function withSets(array $sets): self
return $this;
}

public function withPreparedSets(
Copy link
Member

Choose a reason for hiding this comment

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

existing withSets() should use array_merge() to avoid replaced.

Copy link
Member

Choose a reason for hiding this comment

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

I created PR #5507 for it.

naming: true
)
// @todo improve
->withSets([LevelSetList::UP_TO_PHP_82])
Copy link
Member

@samsonasik samsonasik Jan 26, 2024

Choose a reason for hiding this comment

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

withSets() is now replaced original withPreparedSets(), should use array_merge() inside withSets() method.

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