Affects Version/s: 3.10.1
Fix Version/s: 3.11
Non-strict comparisons between numbers and non-numeric strings now work by
casting the number to string and comparing the strings. Comparisons between
numbers and numeric strings continue to work as before. Notably, this means
that `0 == "not-a-number"` is considered false now.
(so they changed what's converted, previously the string was coerced to number, now the opposite)
For example, the following snippet returns true on PHP7 and false on PHP8:
This causes some errors around Moodle where we expected empty string to be treated as 0.