Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specific Type implementation for callbacks #41

Open
mabar opened this issue Dec 3, 2022 · 0 comments
Open

Specific Type implementation for callbacks #41

mabar opened this issue Dec 3, 2022 · 0 comments

Comments

@mabar
Copy link
Member

mabar commented Dec 3, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant