Skip to content

Commit e1ee861

Browse files
authored
Explicityly check for laravel/framework and debugbar
To avoid missing 3rd party package traces
1 parent dec5b87 commit e1ee861

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ protected function findSource()
201201
*
202202
* @param int $index
203203
* @param array $trace
204-
* @return array|bool
204+
* @return object|bool
205205
*/
206206
protected function parseTrace($index, array $trace)
207207
{
@@ -220,7 +220,10 @@ protected function parseTrace($index, array $trace)
220220

221221
if (isset($trace['class']) && isset($trace['file']) && strpos(
222222
$trace['file'],
223-
DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR
223+
DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'laravel' . DIRECTORY_SEPARATOR . 'framework'
224+
) === false && strpos(
225+
$trace['file'],
226+
DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'barryvdh' . DIRECTORY_SEPARATOR . 'laravel-debugbar'
224227
) === false
225228
) {
226229
$file = $trace['file'];

0 commit comments

Comments
 (0)