Skip to content

[Php80][CodingStyle] Handle ClassPropertyAssignToConstructorPromotionRector+NewlineAfterStatementRector#1350

Merged
samsonasik merged 4 commits into
mainfrom
close-1346
Nov 30, 2021
Merged

[Php80][CodingStyle] Handle ClassPropertyAssignToConstructorPromotionRector+NewlineAfterStatementRector#1350
samsonasik merged 4 commits into
mainfrom
close-1346

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Handle stuck on used of 2 rules:

Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
Rector\CodingStyle\Rector\Stmt\NewlineAfterStatementRector;

Closes #1346 Fixes rectorphp/rector#6840

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

}
}

if ($this->nodesToRemoveCollector->isActive()) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Couldn't this be moved to the top of the refactor function to reduce a little bit of runtime?

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.

moved to top e2056ec

@TomasVotruba
Copy link
Copy Markdown
Member

Thank you 👍

@samsonasik Feel free to merge when ready.

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.

Rector stuck on Rector\PostRector\Rector\NodeToReplacePostRector

4 participants