Skip to content

[CodingStyle] Add StrictInArrayRector - #7921

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

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

Conversation

@samsonasik

Copy link
Copy Markdown
Member

Closes rectorphp/rector#9681

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

@samsonasik

Copy link
Copy Markdown
Member Author

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

@samsonasik

Copy link
Copy Markdown
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
Copy Markdown
Member

LGTM 👍

@github-actions

Copy link
Copy Markdown
Contributor

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 Aug 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add StrictInArrayRector rector

3 participants