Skip to content

Commit

Permalink
pass $bindings to get & getRows methods
Browse files Browse the repository at this point in the history
  • Loading branch information
glushkovds committed Apr 10, 2024
1 parent 9e9c151 commit 474389d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ public function getSettings(): array
/**
* @return Statement
*/
public function get(): Statement
public function get(array $bindings = []): Statement
{
return $this->client->select($this->toSql());
return $this->client->select($this->toSql(), $bindings);
}

/**
* @return array
*/
public function getRows(): array
public function getRows(array $bindings = []): array
{
return $this->get()->rows();
return $this->get($bindings)->rows();
}

/**
Expand Down

0 comments on commit 474389d

Please sign in to comment.