laravel-query-detector icon indicating copy to clipboard operation
laravel-query-detector copied to clipboard

debug_backtrace limit

Open vintagesucks opened this issue 6 years ago • 1 comments

Is there a special reason why the debug_backtrace() limit was set to 50?

https://github.com/beyondcode/laravel-query-detector/blob/c39994e813aa50c3f4168dc872546d7318bfebc5/src/QueryDetector.php#L25

I am in a situation where I am implementing recursive relationships and at a certain depth the following line throws an ErrorException (E_NOTICE) (Undefined offset: 0):

https://github.com/beyondcode/laravel-query-detector/blob/c39994e813aa50c3f4168dc872546d7318bfebc5/src/QueryDetector.php#L77

Increasing the debug_backtrace() limit makes the notice disappear (at least to a certain depth). Would it be possible to make the limit configurable/disableable or is there a better approach that I don't see right now?

Thank you.

vintagesucks avatar Apr 22 '19 23:04 vintagesucks

Thank You Issue is fixed by increase the debug_backtrace limit

premmohantyagi avatar Jan 22 '20 12:01 premmohantyagi