diff --git a/src/Expression/ExpressionBuilder.php b/src/Expression/ExpressionBuilder.php index af4998357..51b82787f 100644 --- a/src/Expression/ExpressionBuilder.php +++ b/src/Expression/ExpressionBuilder.php @@ -88,7 +88,6 @@ private function appendParams(string $sql, array &$expressionParams, array &$par /** @var non-empty-string $name */ foreach ($nonUniqueParams as $name => $value) { - $paramName = $name[0] === ':' ? substr($name, 1) : $name; $uniqueName = $this->getUniqueName($paramName, $params); diff --git a/tests/Provider/SqlParserProvider.php b/tests/Provider/SqlParserProvider.php index c49bbcd4b..2dcd65d1b 100644 --- a/tests/Provider/SqlParserProvider.php +++ b/tests/Provider/SqlParserProvider.php @@ -15,7 +15,7 @@ public static function getNextPlaceholder(): array null, ], [ - "SELECT * FROM {{customer}} WHERE name = ::name", + 'SELECT * FROM {{customer}} WHERE name = ::name', null, null, ],