From 7cd0e3747d2814f43ad77c9bd1d446dcf5320c04 Mon Sep 17 00:00:00 2001 From: mondrake Date: Thu, 31 Aug 2023 19:01:52 +0200 Subject: [PATCH] XI --- .../Database/mysqli/NamedPlaceholderConverter.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Driver/Database/mysqli/NamedPlaceholderConverter.php b/src/Driver/Database/mysqli/NamedPlaceholderConverter.php index 509ad25..8cec555 100644 --- a/src/Driver/Database/mysqli/NamedPlaceholderConverter.php +++ b/src/Driver/Database/mysqli/NamedPlaceholderConverter.php @@ -1,6 +1,6 @@ */ private array $convertedParameters = []; - public function __construct() - { - $patterns = [ + public function __construct() { + $this->sqlPattern = sprintf('(%s)', implode('|', [ $this->getAnsiSQLStringLiteralPattern("'"), $this->getAnsiSQLStringLiteralPattern('"'), self::BACKTICK_IDENTIFIER, @@ -50,8 +49,7 @@ public function __construct() self::ONE_LINE_COMMENT, self::MULTI_LINE_COMMENT, self::OTHER, - ]; - $this->sqlPattern = sprintf('(%s)', implode('|', $patterns)); + ])); } /**