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

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