Skip to content

List shapes #8789

Closed
Closed
@zonuexe

Description

@zonuexe

Feature request

List shapes is a variant of array shapes introduced in Psalm 5 that only support implicit and integer-indexed keys.

list{string, int}
list{0: string, 1: int}
list{0: string, 1?: int}

The first step is to just parse list{} as an alias for array{} for interoperability with Psalm.

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

This week I am writing an 8-page article to introduce PHPStan at the PHPerKaigi Japanese conference.

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