Skip to content

Add test for merge ruleWithConfiguration() after sets on $isBound usage#4881

Merged
samsonasik merged 2 commits intomainfrom
add-test
Aug 29, 2023
Merged

Add test for merge ruleWithConfiguration() after sets on $isBound usage#4881
samsonasik merged 2 commits intomainfrom
add-test

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@TomasVotruba here test for PR:

for removal $isBound usage, on merge sets and direct ruleWithConfiguration()


return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
LevelSetList::UP_TO_PHP_81,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

here StringClassNameToClassConstantRector has $classesToSkip value as empty array.

Comment on lines +14 to +16
$rectorConfig->ruleWithConfiguration(StringClassNameToClassConstantRector::class, [
'Doctrine\*'
]);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

here $classesToSkip value need to be array:

[
    'Doctrine\*'
]

with $isBound check, this still empty.

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 8b07c8e into main Aug 29, 2023
@samsonasik samsonasik deleted the add-test branch August 29, 2023 18:06
@TomasVotruba
Copy link
Copy Markdown
Member

Perfect, thanks for verification 😁

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