Skip to content

[tdd] Add AddParamArrayDocblockBasedOnArrayMapRector#7435

Merged
TomasVotruba merged 1 commit intomainfrom
tv-array-map-param
Oct 6, 2025
Merged

[tdd] Add AddParamArrayDocblockBasedOnArrayMapRector#7435
TomasVotruba merged 1 commit intomainfrom
tv-array-map-param

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Oct 6, 2025

Array map can show not only return, but also param type:

final class SomeClass
{
+ /**
+    *  @param string[] $names
+    */
    public function run(array $names): void
    {
        $names = array_map(fn(string $name) => trim($name), $names);
    }
}

@TomasVotruba TomasVotruba changed the title tv array map param [tdd] Add AddParamArrayDocblockBasedOnArrayMapRector Oct 6, 2025
@TomasVotruba TomasVotruba force-pushed the tv-array-map-param branch 3 times, most recently from 9ce6ab6 to a26ca03 Compare October 6, 2025 20:40
@samsonasik
Copy link
Member

Rebase is needed.

@TomasVotruba TomasVotruba merged commit 366f329 into main Oct 6, 2025
50 checks passed
@TomasVotruba TomasVotruba deleted the tv-array-map-param branch October 6, 2025 22:20
@github-actions
Copy link
Contributor

github-actions bot commented Mar 8, 2026

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 Mar 8, 2026
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.

2 participants