Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ignore info query statements in Clockwork converter #1749

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

boserup
Copy link
Contributor

@boserup boserup commented Feb 25, 2025

The Clockwork converter will currently only ignore explain query statements. If debugbar is configured with a query limit this will yield a query statements with the info type. Without this fix, this will result in an exception, because the info statement does not contain a params key.

Info statement example:

array:2 [▼ // vendor/barryvdh/laravel-debugbar/src/Support/Clockwork/Converter.php:104
  "sql" => "
# Query soft and hard limit for Debugbar are reached. Only the first 250 queries show details. Queries after the first 500 are ignored. Limits can be raised in the config (debugbar.options.db.soft/hard_limit).
 ◀
"
  "type" => "info"
]

@barryvdh barryvdh merged commit b41bbd8 into barryvdh:master Feb 25, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants