Skip to content

Commit

Permalink
Add exception variable
Browse files Browse the repository at this point in the history
Prevents a syntax error. Fixes #307.
  • Loading branch information
Radiergummi authored Aug 4, 2023
1 parent 4cf35aa commit a0c3870
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function reportQuery(array $query): void
'elasticsearch.query',
json_encode($query, JSON_THROW_ON_ERROR) ?: '',
));
} catch (JsonException) {
} catch (JsonException $exception) {
// We don't want errors during reporting to bubble up to
// the application
}
Expand Down

0 comments on commit a0c3870

Please sign in to comment.