From 561a9aa8db0bab4421d16692348a1e6f8c599022 Mon Sep 17 00:00:00 2001 From: Werner Spiegel Date: Fri, 17 May 2019 11:04:48 +0200 Subject: [PATCH] remove unused param in queryparser --- src/Parser/AbstractParser.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Parser/AbstractParser.php b/src/Parser/AbstractParser.php index d69b3d90..4405dfff 100644 --- a/src/Parser/AbstractParser.php +++ b/src/Parser/AbstractParser.php @@ -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 { @@ -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) {