Skip to content

infer offsets between lists after equal count #13675

@staabm

Description

@staabm

Feature request

after count($listA) == count($listB) we should narrow the list-types

  • if one of the lists is known to be non-empty, the other one should also get non-empty
  • if we know certain offsets of one of the lists we should infer the same offsets on the other one

(type-wise and scope-expression wise)

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

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions