Skip to content

[CodeQuality] Skip __construct() method on ExplicitReturnNullRector#5758

Merged
samsonasik merged 1 commit intomainfrom
skip-construct
Mar 22, 2024
Merged

[CodeQuality] Skip __construct() method on ExplicitReturnNullRector#5758
samsonasik merged 1 commit intomainfrom
skip-construct

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Return_'s Expr is removed on __construct() by rule: RemoveUselessReturnExprInConstructRector, see

https://getrector.com/demo/f8805b08-85cc-4052-a46d-23009d0ef575

so this need to be skipped on ExplicitReturnNullRector

@samsonasik samsonasik merged commit b042152 into main Mar 22, 2024
@samsonasik samsonasik deleted the skip-construct branch March 22, 2024 19:53
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.

1 participant