allowComparingOnlyComparableTypes: add support for BcMath\Number#360
Conversation
|
We need to be very careful about the allow/deny decisions here.
What makes you decide this way? Why not allow comparing to itself only? And if int is allowed, why not float? |
BcMath\Number doesn't work with floats and gives a deprecation notice (it does work with numeric strings though). Same as is mentioned here #320 |
71c031b to
8deb5dd
Compare
|
Let me know if you want allowNumericString for this as well: |
It adds complexity and some ambiguity where exactly those numeric strings would get allowed. So not yet. Thx |
|
Cheers! |
Allow BcMath\Number to be compared with integers and itself.