Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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