Skip to content

Union between array shape and 'normal' array gives some strange results #7759

@BackEndTea

Description

@BackEndTea

Bug report

It appears the union between a shaped array and a 'normal' one tries to generalize some things where it shouldn't.

Code snippet that reproduces the problem

https://phpstan.org/r/4e6611d0-89ac-486d-8636-fb9a57c8cb4e

Expected output

No errors

Metadata

Metadata

Assignees

No one assigned

    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