Skip to content

[CodeQuality] Handle deep comments merged on ShortenElseIfRector#3419

Merged
samsonasik merged 6 commits intomainfrom
close-3413
Feb 26, 2023
Merged

[CodeQuality] Handle deep comments merged on ShortenElseIfRector#3419
samsonasik merged 6 commits intomainfrom
close-3413

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Closes #3413

kkmuffme and others added 4 commits February 27, 2023 02:13
# Failing Test for ShortenElseIfRector

Based on https://getrector.com/demo/9434743e-4ebc-45d9-a12f-694c87d6e4db

The issue is that this rector rule puts EVERY comment found anywhere inside the if (or elseif or else) inside, on top of the newly created elseif, creating a major mess.
@samsonasik samsonasik enabled auto-merge (squash) February 26, 2023 19:36
@samsonasik samsonasik merged commit b7b3a1d into main Feb 26, 2023
@samsonasik samsonasik deleted the close-3413 branch February 26, 2023 19:39
samsonasik added a commit that referenced this pull request May 8, 2023
* Add failing test fixture for ShortenElseIfRector

# Failing Test for ShortenElseIfRector

Based on https://getrector.com/demo/9434743e-4ebc-45d9-a12f-694c87d6e4db

The issue is that this rector rule puts EVERY comment found anywhere inside the if (or elseif or else) inside, on top of the newly created elseif, creating a major mess.

* rename fixture

* fixture space

* Closes #3413

* Fix

* cs fix

---------

Co-authored-by: kkmuffme <11071985+kkmuffme@users.noreply.github.com>
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