Skip to content

[Php70] Allow is_null() conversion on TernaryToNullCoalescingRector with parentheses handling#7969

Merged
samsonasik merged 5 commits intomainfrom
coa
Apr 14, 2026
Merged

[Php70] Allow is_null() conversion on TernaryToNullCoalescingRector with parentheses handling#7969
samsonasik merged 5 commits intomainfrom
coa

Conversation

@samsonasik
Copy link
Copy Markdown
Member

@samsonasik samsonasik commented Apr 14, 2026

Closes #7890
Closes rectorphp/rector#9648

Continue of #7890

@samsonasik
Copy link
Copy Markdown
Member Author

Test notice on rector-symfony is unrelated

https://github.com/rectorphp/rector-src/actions/runs/24381475596/job/71205726476?pr=7969#step:7:40

probably due to new phpstan release https://github.com/phpstan/phpstan/releases/tag/2.1.47

I will look into that.

@samsonasik
Copy link
Copy Markdown
Member Author

rector-symfony test fixed at PR:

@samsonasik
Copy link
Copy Markdown
Member Author

I've pushed empty commit to trigger CI 👍 e8c4b94

@samsonasik
Copy link
Copy Markdown
Member Author

All green 🎉 @TomasVotruba I am merging it ;)

I will bump phpstan to ^2.1.47 on separate PR :)

@samsonasik samsonasik merged commit f8f3487 into main Apr 14, 2026
66 of 67 checks passed
@samsonasik samsonasik deleted the coa branch April 14, 2026 05:03
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.

Support is_null() in TernaryToNullCoalescingRector

2 participants