Skip to content

array_splice throws away the type #4743

@simPod

Description

@simPod

Bug report

running array<T> through array_splice() returns array. Should keep T

Code snippet that reproduces the problem

https://phpstan.org/r/c7725599-635a-41ef-a853-1cc052987e7f

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions