ValueError thrown

str_repeat(): Argument #2 ($times) must be greater than or equal to 0