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

[Rector] Apply Rector: RemoveUnusedPrivateMethodRector #4455

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Mar 19, 2021

Remove unused private method with RemoveUnusedPrivateMethodRector rector rule.

Also currently pin symplify/rule-doc-generator to v9.2.11 due removed Symplify\RuleDocGenerator\Contract\DocumentedRuleInterface see rectorphp/rector#5908

The interface moved to symplify/rule-doc-generator-contracts that will be included in next rector release, but for now, pin to symplify/rule-doc-generator to v9.2.11.

Checklist:

  • Securely signed commits

private function castAsJson($value, bool $asArray = false)
{
return CastAsJson::get($value, $asArray ? ['array'] : []);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

oh, seems it is actually used magically.

@samsonasik samsonasik closed this Mar 19, 2021
@samsonasik samsonasik deleted the remove-unused-private-method branch March 19, 2021 12:50
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