I did a quick filter_var(..., FILTER_SANITIZE_NUMBER_INT) around my numbers and I think it should be working ok now!