Skip to content

[CodingStyle] Add StrictInArrayRector#7921

Merged
TomasVotruba merged 5 commits intomainfrom
add-strict-in-array
Feb 28, 2026
Merged

[CodingStyle] Add StrictInArrayRector#7921
TomasVotruba merged 5 commits intomainfrom
add-strict-in-array

Conversation

@samsonasik
Copy link
Member

Closes rectorphp/rector#9681

Set in_array strict to true when defined on similar native types.

@samsonasik
Copy link
Member Author

implemented 🎉 /cc @acbramley , this with check ensure both types are similar for safe guard.

@samsonasik
Copy link
Member Author

@TomasVotruba ready 👍

@TomasVotruba TomasVotruba merged commit dfb760f into main Feb 28, 2026
59 checks passed
@TomasVotruba TomasVotruba deleted the add-strict-in-array branch February 28, 2026 18:33
@TomasVotruba
Copy link
Member

LGTM 👍

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.

Add StrictInArrayRector rector

3 participants