Skip to content

Report unsafe array string key casting - detect/prevent options#5328

Merged
ondrejmirtes merged 3 commits into2.2.xfrom
report-unsafe-array-string-key-casting
Mar 29, 2026
Merged

Report unsafe array string key casting - detect/prevent options#5328
ondrejmirtes merged 3 commits into2.2.xfrom
report-unsafe-array-string-key-casting

Conversation

@ondrejmirtes
Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes commented Mar 29, 2026

@phpstan-bot
Copy link
Copy Markdown
Collaborator

You've opened the pull request against the latest branch 2.2.x. PHPStan 2.2 is not going to be released for months. If your code is relevant on 2.1.x and you want it to be released sooner, please rebase your pull request and change its target to 2.1.x.

@ondrejmirtes ondrejmirtes merged commit 3da8941 into 2.2.x Mar 29, 2026
352 of 353 checks passed
@ondrejmirtes ondrejmirtes deleted the report-unsafe-array-string-key-casting branch March 29, 2026 14:02
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.

Array index missing integer type Array<string, ...> is not reliable if a numeric string makes it in

2 participants