Closed as duplicate of#60603
Description
Symfony version(s) affected
7.3
Description
When i use dump(1);
in Laravel (which rely on the symfony packages) before rendering a view i get a :
ErrorException: Cannot modify header information - headers already sent by...
Route::get('/test', function () {
dump(1);
return 'ok';
});
How to reproduce
use dump(1);
before render a view
Possible Solution
does var-dumper should consider using ob_start(); ... ob_end_clean();
somewhere ? π
i dunno. but maybe some modification of it would be welcome to handle that situation.
Additional Context
No response