Skip to content

make TypeInterface::assert, TypeInterface::coerce and TypeInterface::assert emit function.alreadyNarrowedType #20

Open
@bendavies

Description

@bendavies

Hi,

Similar to how \assert(...) works (https://phpstan.org/r/1a64fa56-fe04-47d5-a2ed-ef82e2206248), it would be nice if TypeInterface::assert, TypeInterface::coerce and TypeInterface::assert emitted the same errors, alerting the developer to when Type assertions are not necessary.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions