Skip to content

Conversation

@TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented Oct 22, 2025

Closes rectorphp/rector#9447

Since this is 1st time mixed variable is incorrectly casted to string as array, I've added only simple check for possible plural variable. That allows this rule to catch array mixed, while keeps working for string mixed.

If it fails, we'll revisit 👍

…plural array passed to function where array allowed
@TomasVotruba TomasVotruba force-pushed the tv-fix-call-args-string-cast branch from e88bb32 to 70e8952 Compare October 22, 2025 15:25
@TomasVotruba TomasVotruba merged commit 97d84eb into main Oct 22, 2025
52 checks passed
@TomasVotruba TomasVotruba deleted the tv-fix-call-args-string-cast branch October 22, 2025 15:30
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.

Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector casts array to string

2 participants