Error on dump or dd laravel adding a character before result

I had the same problem with laravel framework Lumen (5.8.12) and I solved the problem by returning to version 5.8.4.

The Origin of the problem seems to be the Symfony VarDumper Component (\vendor\symfony\var-dumper\Cloner\Data.php, line 302):

$dumper->dumpScalar($cursor, 'default', '^');

Should be:

 $dumper->dumpScalar($cursor, 'default', '');

Update

It is there for a useful reason. In terminal if you hover over the mouse on that ^ sign it will show you the file path from where this dump is coming from! I think it's really a useful thing but I don't see it working in browser. So, it should either be removed from borwser or fix the issue there.