Skip to content

Add failing test fixture for ShortenElseIfRector#3413

Closed
kkmuffme wants to merge 1 commit intorectorphp:mainfrom
kkmuffme:patch-15
Closed

Add failing test fixture for ShortenElseIfRector#3413
kkmuffme wants to merge 1 commit intorectorphp:mainfrom
kkmuffme:patch-15

Conversation

@kkmuffme
Copy link
Copy Markdown
Contributor

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.

# 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
Copy link
Copy Markdown
Member

@kkmuffme I cherry-picked your commit at PR #3419

samsonasik added a commit that referenced this pull request Feb 26, 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>
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