Skip to content

PreparedValueToEarlyReturnRector creates invalid code#4528

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

PreparedValueToEarlyReturnRector creates invalid code#4528
kkmuffme wants to merge 1 commit intorectorphp:mainfrom
kkmuffme:patch-16

Conversation

@kkmuffme
Copy link
Copy Markdown
Contributor

There are some options to change this to early return, however I'm not sure if this is wanted here (since it would mean you'd have to concat in the return), so I suggested to not change the code at all (instead of creating invalid code as it does now)

There are some options to change this to early return, however I'm not sure if this is wanted here (since it would mean you'd have to concat in the return), so I suggested to not change the code at all (instead of creating invalid code as it does now)
@samsonasik
Copy link
Copy Markdown
Member

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

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