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

[TypeDeclaration] Unregister AddClosureParamTypeForArrayMapRector and AddClosureParamTypeForArrayReduceRector due to may read from docblock #6727

Merged
merged 2 commits into from
Feb 10, 2025

Conversation

samsonasik
Copy link
Member

@samsonasik samsonasik commented Feb 10, 2025

@TomasVotruba @peterfox @staabm this PR unregister 2 rules from type declaration set.

  • AddClosureParamTypeForArrayMapRector
  • AddClosureParamTypeForArrayReduceRector

due to may read from docblock which unreliable on my tests on a big project. This PR unregister it. To use the rules, manual register is needed.

PR review

… AddClosureParamTypeForArrayReduceRector due to may read from docblock
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 1018010 into main Feb 10, 2025
44 checks passed
@samsonasik samsonasik deleted the unregiter-param-closure branch February 10, 2025 12:14
@peterfox
Copy link
Contributor

Is it worth adding a type dec risky set that people can use?

@samsonasik
Copy link
Member Author

rector-preset set probably better place for it since it can be usefull for project with high level phpstan

https://github.com/rectorphp/rector-src/blob/main/config/set/rector-preset.php

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.

3 participants