Skip to content

Commit 531ce87

Browse files
authored
set line default as 1 (#1589)
1 parent 4aaf214 commit 531ce87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataCollector/QueryCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected function parseTrace($index, array $trace)
318318
'namespace' => null,
319319
'name' => null,
320320
'file' => null,
321-
'line' => isset($trace['line']) ? $trace['line'] : '?',
321+
'line' => $trace['line'] ?? '1',
322322
];
323323

324324
if (isset($trace['function']) && $trace['function'] == 'substituteBindings') {

0 commit comments

Comments
 (0)