Skip to content

Array shapes are not properly checked when appending arrays #6356

@phinor

Description

@phinor

Bug report

When appending records to an array, the array shapes are not checked / reported properly.

Code snippet that reproduces the problem

https://phpstan.org/r/871e400d-6df0-4cc0-91a6-3b9c5798b987

Expected output

Line 25 does not produce an error (and I believe it should), but this error seemingly is reported on line 27 which should not generate an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions