Fatal error: Uncaught TypeError: preg_replace(): Argument #2 ($replacement) must be of type array|string, Closure given in /in/aV9eF:3
Stack trace:
#0 /in/aV9eF(3): preg_replace('/(.)\\1*/', Object(Closure), 'WWWWWWWWWWWWBWW...')
#1 /in/aV9eF(10): encode('WWWWWWWWWWWWBWW...')
#2 {main}
thrown in /in/aV9eF on line 3
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Object of class Closure could not be converted to string in /in/aV9eF:3
Stack trace:
#0 /in/aV9eF(3): preg_replace('/(.)\\1*/', Object(Closure), 'WWWWWWWWWWWWBWW...')
#1 /in/aV9eF(10): encode('WWWWWWWWWWWWBWW...')
#2 {main}
thrown in /in/aV9eF on line 3
Process exited with code 255.