Skip to content

Conversation

@samsonasik
Copy link
Member

Continue of:

the variable definition seems no need to change to match(true), as cause different result, ref

https://3v4l.org/jBE1q vs https://3v4l.org/I4IF9

The exact Node: - instanceof or CallLike seems need to be used on this case.

@samsonasik samsonasik changed the title [Php80] Do not change to match(true) on variable defintion [Php80] Do not change to match(true) on variable defintion on ChangeSwitchToMatchRector Jun 8, 2025
@samsonasik
Copy link
Member Author

Fixed with exact nodes to check

@samsonasik samsonasik changed the title [Php80] Do not change to match(true) on variable defintion on ChangeSwitchToMatchRector [Php80] Do not change to match(true) on variable from param on case cond on ChangeSwitchToMatchRector Jun 8, 2025
@samsonasik samsonasik merged commit aaa04eb into main Jun 8, 2025
45 checks passed
@samsonasik samsonasik deleted the continue branch June 8, 2025 12:44
@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants