Skip to content

Handling assignments to list items has some limitations #9484

@ptomulik

Description

@ptomulik

In short, psalm reports errors for the following examples, which are correct in fact:

https://psalm.dev/r/8972d76050 (copying a list to another list).
https://psalm.dev/r/74126f725d (appending to list end, but using an offset)
https://psalm.dev/r/fe3d1f172a (altering elements within a loop over continuous range of indices starting from 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions