Skip to content

Commit

Permalink
builder fix undefined params
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmk committed Jul 3, 2024
1 parent b4dca80 commit 07f3642
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ protected function extractArguments()
protected function buildParams()
{
foreach ($this->available_arguments as $name) {
$this->arguments[":{$name}"] = $this->query_params[$name];
if (isset($this->query_params[$name])) {
$this->arguments[":{$name}"] = $this->query_params[$name];
}
}

foreach ($this->available_params as $name) {
$this->params[$name] = $this->query_params[$name];
if (isset($this->query_params[$name])) {
$this->params[$name] = $this->query_params[$name];
}
}

return $this;
Expand Down

0 comments on commit 07f3642

Please sign in to comment.