Skip to content

Specific Type implementation for callbacks #41

Description

@mabar

Currently, Type is available in second parameter of callback via Context.

  • It may be moved to separate parameter, to be checked by object mapper for specific implementation
  • Types could be generic and checked by phpstan - useful for anyof, allof, arrayof a listof rules
  • User can decide to use different Type in callback than the default one, Type checks should allow them. Specific Type is only needed for code completition for user, object mapper does not need them

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