Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip coalsce assign in RemoveUnusedPrivatePropertyRector #4491

Merged
merged 2 commits into from
Jul 12, 2023
Merged

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Jul 12, 2023

@TomasVotruba TomasVotruba changed the title patch 1 Skip coalsce assign in RemoveUnusedPrivatePropertyRector Jul 12, 2023
@TomasVotruba TomasVotruba merged commit c0983f1 into main Jul 12, 2023
43 checks passed
@TomasVotruba TomasVotruba deleted the patch-1 branch July 12, 2023 09:49
Comment on lines +26 to +27
if ($node instanceof Coalesce) {
$node->var->setAttribute(AttributeKey::IS_ASSIGNED_TO, true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think common AssignOp should be used for it, see + usage at https://getrector.com/demo/807f2ae3-e2c3-4810-9b52-96030125a160

that still removed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 👍 Could you fix that?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will try 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants