Skip to content

Add dynamic return type extension for enums #1

Closed
@adaamz

Description

@adaamz

Hi,
in general there should be create dynamic return type extension. It will allow us to exactly know returned value from function call, or at least returned type.

Take example from
https://github.com/adaamz/phpstan-mabe-enum/blob/045e4ad/src/DynamicReturnTypeExtension.php
I'm not sure if it is up-to-date with latest phpstan, must check :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions