+
Skip to content

array_combine should allow array of string or integer only #3694

@pattisahusiwa

Description

@pattisahusiwa

Bug report

Parameter $keys in array_combine should be string[] or int[] only. Every illegal data type will be converted to string.

Code snippet that reproduces the problem

https://phpstan.org/r/2b7e973c-2157-49dd-a4d1-3806a9688293
https://3v4l.org/lRn5W

Expected output

Should report errors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载