Skip to content

Function array return type #9486

@ph7jack

Description

@ph7jack

Description

I believe to have better strict types, would be nice to have an array type as TypeScript does.
Now I can use comments to add this type of inference, but it doesn't break if my return type is different than the type hint.

php-rfc

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