Skip to content

[Php85] Add ArrayKeyExistsNullToEmptyStringRector#7183

Merged
TomasVotruba merged 14 commits intorectorphp:mainfrom
arshidkv12:8.5_ArrayKey…StringRector
Aug 28, 2025

Hidden character warning

The head ref may contain hidden characters: "8.5_ArrayKey\u2026StringRector"
Merged

[Php85] Add ArrayKeyExistsNullToEmptyStringRector#7183
TomasVotruba merged 14 commits intorectorphp:mainfrom
arshidkv12:8.5_ArrayKey…StringRector

Conversation

@arshidkv12
Copy link
Contributor

Copy link
Member

@samsonasik samsonasik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please run:

bin/rector && composer fix-cs

to fix CI

@samsonasik samsonasik changed the title Add Rector to replace null keys in array_key_exists with empty string [Php85] Add ArrayKeyExistsNullToEmptyStringRector Aug 28, 2025
Copy link
Member

@samsonasik samsonasik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@TomasVotruba
Copy link
Member

TomasVotruba commented Aug 28, 2025

LGTM 👍 Thank you @arshidkv12

@TomasVotruba TomasVotruba merged commit aeb8a67 into rectorphp:main Aug 28, 2025
49 checks passed
@arshidkv12
Copy link
Contributor Author

Thanks for the quick review.

@samsonasik
Copy link
Member

key seems can be int, I will check and ensure it not casted to string

https://3v4l.org/ZcBbZ

@samsonasik
Copy link
Member

#7189

@samsonasik
Copy link
Member

Btw, the deprecation is not yet merged on php-src:

so if in the PR not merged (likely will be merged) when php 8.5 released, we can revert this rule :)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 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 Feb 1, 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.

3 participants