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

[CodingStyle] Remove previous node attribute on TernaryConditionVariableAssignmentRector #3540

Merged
merged 1 commit into from Mar 30, 2023

Conversation

samsonasik
Copy link
Member

Replace previous with assigned_to attribute on the ternary.

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@TomasVotruba TomasVotruba merged commit fd2e1a1 into main Mar 30, 2023
38 checks passed
@TomasVotruba TomasVotruba deleted the cd-prev-ter branch March 30, 2023 16:37
@TomasVotruba
Copy link
Member

Awesome 👍

/**
* @var string
*/
public const ASSIGNED_TO = 'assigned_to';
Copy link
Member Author

Choose a reason for hiding this comment

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

@TomasVotruba I just re-check that assigned_to attribute came from symplify/phpstan-rules, which is a require-dev, on scoped build, it is not included, so the AssignedToPropertyNodeVisitor need to be copied to rector-src

https://github.com/symplify/phpstan-rules/blob/main/src/NodeVisitor/AssignedToPropertyNodeVisitor.php#L15

Copy link
Member Author

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
2 participants