TypeError thrown

abs(): Argument #1 ($num) must be of type int|float, string given