Skip to content

Commit

Permalink
remove unused param in queryparser
Browse files Browse the repository at this point in the history
  • Loading branch information
Werner Spiegel committed May 17, 2019
1 parent 2be02d5 commit 561a9aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Parser/AbstractParser.php
Expand Up @@ -182,7 +182,7 @@ protected function prepareValuePlaceholders(array $subs)
foreach ($subs as $i => $sub) {
$char = substr($sub, 0, 1);
if ($char == '?') {
$str .= $this->prepareNumberedPlaceholder($sub);
$str .= $this->prepareNumberedPlaceholder();
} elseif ($char == ':') {
$str .= $this->prepareNamedPlaceholder($sub);
} else {
Expand All @@ -196,13 +196,11 @@ protected function prepareValuePlaceholders(array $subs)
*
* Bind or quote a numbered placeholder in a query subpart.
*
* @param string $sub The query subpart.
*
* @return string The prepared query subpart.
*
* @throws MissingParameter
*/
protected function prepareNumberedPlaceholder($sub)
protected function prepareNumberedPlaceholder()
{
$this->num ++;
if (array_key_exists($this->num, $this->values) === false) {
Expand Down

0 comments on commit 561a9aa

Please sign in to comment.