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

bug: EmptyLoopBodyFixer must keep comments inside #6800

Merged
merged 1 commit into from Feb 26, 2023

Conversation

mvorisek
Copy link
Contributor

@mvorisek mvorisek commented Feb 26, 2023

fix #6040

Commented code and comments in general must be kept inside the loop body otherwise the meaning could be changed.

@mvorisek mvorisek changed the title EmptyLoopBodyFixer must keep comments inside bug: EmptyLoopBodyFixer must keep comments inside Feb 26, 2023
@mvorisek mvorisek marked this pull request as ready for review February 26, 2023 15:10
@keradus keradus merged commit a4c78fb into PHP-CS-Fixer:master Feb 26, 2023
@mvorisek mvorisek deleted the empty_body_with_comment branch February 26, 2023 22:00
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.

empty_loop_body must honor comments
2 participants