Skip to content

[feature] Object shape typings definition #6892

@kocoten1992

Description

@kocoten1992

Feature request

related to #2173

Do we have object typing, for example:

/**
 * @return array<int, object{first:int, second:string}>
 */
function hello(): array {
    return [];
}

Did PHPStan help you today? Did it make you happy in any way?
Yes, it help me a lot!

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