From manual page: https://php.net/function.str-repeat
On PHP 8, calling str_repeat with arg #2 < 0 throws this exception:
PHP Fatal error: Uncaught ValueError: str_repeat(): Argument #2 ($times) must be greater than or equal to 0
The docs do not currently reflect this. They currently state "If the times is set to 0, the function will return an empty string.".