Skip to content

Commit

Permalink
Fix property should be method call
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-redfern committed Mar 3, 2024
1 parent ef8d057 commit 9fc1f57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __invoke(PostSelectQueryCompile $event): void
foreach ($event->query->getBinder()->bindings() as $binding) {
$placeholder = ':' . $binding->placeholder;

if (preg_match('/' . $placeholder . '(?:\W|$)/', $event->sql) > 0) {
if (preg_match('/' . $placeholder . '(?:\W|$)/', $event->getRevisedSql()) > 0) {
$event->binder->bind($placeholder, $binding->value, $binding->type);
}
}
Expand Down

0 comments on commit 9fc1f57

Please sign in to comment.