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
As for now we had to create the dialyxir.ignore_warnings file. We were getting so many because we did not define the UserSocket type (or we actually defined it as @type t :: %Phoenix.Socket{}, which is not enough (we keep more data inside than the traditional socket). This is why all of the functions dealing with UserSocket are throwing errors.
Expected behaviour
No errors on output.
Motivation / use case
Dialyxir is right about throwing errors here because the type specs and the reality indeed are different.
The text was updated successfully, but these errors were encountered:
Type
Fix
Current behaviour
As for now we had to create the
dialyxir.ignore_warnings
file. We were getting so many because we did not define the UserSocket type (or we actually defined it as@type t :: %Phoenix.Socket{}
, which is not enough (we keep more data inside than the traditional socket). This is why all of the functions dealing with UserSocket are throwing errors.Expected behaviour
No errors on output.
Motivation / use case
Dialyxir is right about throwing errors here because the type specs and the reality indeed are different.
The text was updated successfully, but these errors were encountered: