Skip to content

Commit 913664c

Browse files
BenConstabledcramer
authored andcommitted
Fixes broken bindings check in 5.2 query handler
1 parent 6412fcb commit 913664c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Sentry/SentryLaravel/SentryLaravelEventHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ protected function queryExecutedHandler(QueryExecuted $query)
148148
'connectionName' => $query->connectionName,
149149
];
150150

151-
if ($this->sqlBindings && !empty($bindings)) {
151+
if ($this->sqlBindings && !empty($query->bindings)) {
152152
$data['bindings'] = $query->bindings;
153153
}
154154

0 commit comments

Comments
 (0)