From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vendor/doctrine/dbal/src/Driver/PDO/Statement.php | 80 ----------------------- 1 file changed, 80 deletions(-) delete mode 100644 vendor/doctrine/dbal/src/Driver/PDO/Statement.php (limited to 'vendor/doctrine/dbal/src/Driver/PDO/Statement.php') diff --git a/vendor/doctrine/dbal/src/Driver/PDO/Statement.php b/vendor/doctrine/dbal/src/Driver/PDO/Statement.php deleted file mode 100644 index 4f0e070..0000000 --- a/vendor/doctrine/dbal/src/Driver/PDO/Statement.php +++ /dev/null @@ -1,80 +0,0 @@ -convertParamType($type); - - try { - $this->stmt->bindValue($param, $value, $pdoType); - } catch (PDOException $exception) { - throw Exception::new($exception); - } - } - - /** - * @internal Driver options can be only specified by a PDO-based driver. - * - * @throws ExceptionInterface - */ - public function bindParamWithDriverOptions( - string|int $param, - mixed &$variable, - ParameterType $type, - mixed $driverOptions, - ): void { - $pdoType = $this->convertParamType($type); - - try { - $this->stmt->bindParam($param, $variable, $pdoType, 0, $driverOptions); - } catch (PDOException $exception) { - throw Exception::new($exception); - } - } - - public function execute(): Result - { - try { - $this->stmt->execute(); - } catch (PDOException $exception) { - throw Exception::new($exception); - } - - return new Result($this->stmt); - } - - /** - * Converts DBAL parameter type to PDO parameter type - * - * @psalm-return PDO::PARAM_* - */ - private function convertParamType(ParameterType $type): int - { - return match ($type) { - ParameterType::NULL => PDO::PARAM_NULL, - ParameterType::INTEGER => PDO::PARAM_INT, - ParameterType::STRING, - ParameterType::ASCII => PDO::PARAM_STR, - ParameterType::BINARY, - ParameterType::LARGE_OBJECT => PDO::PARAM_LOB, - ParameterType::BOOLEAN => PDO::PARAM_BOOL, - }; - } -} -- cgit v1.2.3