Skip to content

Commit b33a8b1

Browse files
committed
fix: add string cast
1 parent 2448510 commit b33a8b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/DataListener/Services/SessionFormatter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ public function format($time, $data, $query): array
1313
$possibleTraces = (new TraceMapper())->get();
1414
$key = count($data[$time]);
1515

16+
1617
$data[$time][$key] = [
1718
'time' => $time,
1819
'timeKey' => $key,
1920
'backtrace' => $possibleTraces,
20-
'sql' => QueryBuilderHelper::combineQueryAndBindings($query->sql, $query->bindings),
21+
'sql' => QueryBuilderHelper::combineQueryAndBindings((string)$query->sql, $query->bindings),
2122
'rawSql' => $query->sql,
2223
'bindings' => (new BindingsMapper())->toCache($query->bindings),
2324
'queryTime' => $query->time,

0 commit comments

Comments
 (0)