Skip to content

Commit

Permalink
fix missing grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
railken committed Mar 27, 2024
1 parent b32257a commit 2e7089b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"require-dev": {
"orchestra/testbench": "*",
"friendsofphp/php-cs-fixer": "^2.16"
"friendsofphp/php-cs-fixer": "^3.52"
},
"autoload": {
"psr-4" : {
Expand Down
2 changes: 1 addition & 1 deletion src/Query/Visitors/BaseOperatorVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function parseNode($query, $node)

$childs = $childs->map(function ($v) use ($query) {
if ($v instanceof \Illuminate\Database\Query\Expression) {
return $v->getValue();
return $v->getValue($query->grammar);
}

$query->addBinding($v, 'where');
Expand Down

0 comments on commit 2e7089b

Please sign in to comment.