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

[CodeQuality] Add InlineConstructorDefaultToPropertyRector #1935

Merged
merged 2 commits into from
Mar 15, 2022

Conversation

TomasVotruba
Copy link
Member

No description provided.

@TomasVotruba TomasVotruba force-pushed the tv-inliner-property-defaults branch 3 times, most recently from e809df3 to c7fa79e Compare March 15, 2022 17:03
@TomasVotruba TomasVotruba force-pushed the tv-inliner-property-defaults branch from c7fa79e to 5418862 Compare March 15, 2022 17:04
return $defaultPropertyExprAssigns;
}

private function isAllowedPropertyDefaultExpr(Expr $expr): bool
Copy link
Member

@samsonasik samsonasik Mar 15, 2022

Choose a reason for hiding this comment

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

There is already service !ExprAnalyzer->isDynamicValue() for it

public function isDynamicValue(Expr $expr): bool

use negation for this use case

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll try, thanks

@TomasVotruba TomasVotruba merged commit 7202782 into main Mar 15, 2022
@TomasVotruba TomasVotruba deleted the tv-inliner-property-defaults branch March 15, 2022 17:26
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.

2 participants