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 that multiple use of the same binding is only replaced once in the query #1503

Merged
merged 2 commits into from
Aug 15, 2024

Conversation

kohlerdominik
Copy link
Contributor

@kohlerdominik kohlerdominik commented Aug 15, 2024

Named Query-bindings can be used multiple times in one query, but Telescope explicitly only replaces the first use of a binding. This is due to the fact that the preg_replace doesn't distinguish between unnamed parameters (where only the match hit must be replaced) and named parameters.

This makes rerunning queries in a console cumbersome, because it's always necessary to dump the bindings and replace further uses manually.

@taylorotwell taylorotwell merged commit e518029 into laravel:5.x Aug 15, 2024
12 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