From client
We are trying out php 8.1 with blesta and noticed a type issue in cpanel.
when limit was returning unlimited we get
[2024-07-09T17:00:01.728988+00:00] general.ERROR: Uncaught Exception TypeError: "Unsupported operand types: string / int" at blesta/components/modules/cpanel/cpanel.php line 1704
Unknown macro: {"exception"}
and if you cast it to int got this
[2024-07-09T17:01:03.207526+00:00] general.ERROR: Uncaught Exception TypeError: "round(): Argument #1 ($num) must be of type int|float, string given" at blesta/components/modules/cpanel/views/default/tab_stats.pdt line 83
Unknown macro: {"exception"}
Let me know if you have any followups.
but looks like its not handling unlimited correctly and tries to use it as a number