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've been using the Decimal extension which overloads the +, -, *, /, %, and ** operators. It would be great if Psalm could support this somehow so I don't have to choose between using the less readable ->add(), ->mul(), etc everywhere and littering code with /** @psalm-suppress */.
I'm ok with any implementation that works, but I'm personally thinking it would be something like annotating a method with
It looks like Psalm already supports the operator overloading used by GMP, so hopefully it wouldn't be too much work to add annotations that expose similar functionality.
The text was updated successfully, but these errors were encountered:
I've been using the Decimal extension which overloads the
+
,-
,*
,/
,%
, and**
operators. It would be great if Psalm could support this somehow so I don't have to choose between using the less readable->add()
,->mul()
, etc everywhere and littering code with/** @psalm-suppress */
.I'm ok with any implementation that works, but I'm personally thinking it would be something like annotating a method with
or annotating the class with
It looks like Psalm already supports the operator overloading used by GMP, so hopefully it wouldn't be too much work to add annotations that expose similar functionality.
The text was updated successfully, but these errors were encountered: