You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working in a codebase right now that heavenly relies on passing $modelId's to the services.
It uses psalm to doctype which is already great! But since everything is the same scalar type it doesn't really stop you from making these mistakes:
It would be nice if you can make custom types that are somehow stricter.
Like this below is allowed, but would be nice it it actually throws an error that $x is not a RoleId
I'm working in a codebase right now that heavenly relies on passing $modelId's to the services.
It uses psalm to doctype which is already great! But since everything is the same scalar type it doesn't really stop you from making these mistakes:
It would be nice if you can make custom types that are somehow stricter.
Like this below is allowed, but would be nice it it actually throws an error that $x is not a RoleId
I did some digging around but found no resources for this?
The text was updated successfully, but these errors were encountered: