Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Sep 26, 2025

Docblock rules should always bring more value than code already has. Spreading mixed[] everywhere might silent PHPStan reports, but it actually doesn't tell us anything new.

Instead, the type should have at least one extra value (key type, value type etc.) that gives us more intell. We'll work on this ruleset to fill all possible resolvable types first, so Rector brings most value there is 👍

@TomasVotruba TomasVotruba changed the title avoid spreadding mixed type in ClassMethodArrayDocblockParamFromLocalCallsRector Avoid spreadding mixed type in ClassMethodArrayDocblockParamFromLocalCallsRector Sep 26, 2025
@TomasVotruba TomasVotruba force-pushed the tv-avoid-duplicating-mixed branch from 498085d to 0c536a6 Compare September 26, 2025 12:19
@TomasVotruba TomasVotruba merged commit 98c1d3a into main Sep 26, 2025
49 of 50 checks passed
@TomasVotruba TomasVotruba deleted the tv-avoid-duplicating-mixed branch September 26, 2025 12:21
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.

2 participants