laravel-debugbar icon indicating copy to clipboard operation
laravel-debugbar copied to clipboard

Non-string messages not rendering when exception raised

Open michprev opened this issue 3 years ago • 2 comments

  • Laravel v9.44.0 (PHP v8.1.13)
  • barryvdh/laravel-debugbar version - v3.7.0

How to reproduce

Modify the laravel example app by inserting the following lines anywhere into resources/views/welcome.blade.php:

@php
$arr = [
    'name' => 'John',
    'age' => 30,
    'cars' => [
        'Ford',
        'BMW',
        'Toyota'
    ]
];
\Debugbar::log($arr);

throw new Exception('Error Processing Request', 1);

@endphp

Observed behavior

image

Expected behavior

With the throw new Exception('Error Processing Request', 1); line removed / commented out: image

michprev avatar Dec 17 '22 13:12 michprev

I made a fix for this, please approve #1399

crysix avatar Mar 02 '23 13:03 crysix

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this issue is still present on the latest version of this library on supported Laravel versions, please let us know by replying to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.

stale[bot] avatar Jun 18 '23 19:06 stale[bot]