Skip to content

Type::*array methods loose generic types #14633

@staabm

Description

@staabm

Bug report

In phpstan/phpstan-src#5696 and phpstan/phpstan-src#5694 we fixed type-functions which lost template types

do we have a similar bug in one of the other Type::*array methods - e.g. Type::shiftArray etc. ?
if so, come up with tests and fixes

Code snippet that reproduces the problem

No response

Expected output

no lost template types after array-type methods have been invoked

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions