Skip to content

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

@github-actions
Copy link
Contributor

This pull request has been automatically locked because it has been closed for 150 days. Please open a new PR if you want to continue the work.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants