Skip to content

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

Merged
samsonasik merged 5 commits into
mainfrom
coa
Apr 14, 2026
Merged

samsonasik merged 5 commits into
mainfrom
coa

Conversation

@samsonasik

@samsonasik samsonasik commented Apr 14, 2026

Copy link
Copy Markdown
Member

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
@github-actions

Copy link
Copy Markdown
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 Sep 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Support is_null() in TernaryToNullCoalescingRector

2 participants