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 --- .../dbal/src/Driver/AbstractMySQLDriver.php | 86 ---------------------- 1 file changed, 86 deletions(-) delete mode 100644 vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php (limited to 'vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php') diff --git a/vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php b/vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php deleted file mode 100644 index 40d6507..0000000 --- a/vendor/doctrine/dbal/src/Driver/AbstractMySQLDriver.php +++ /dev/null @@ -1,86 +0,0 @@ -getServerVersion(); - if (stripos($version, 'mariadb') !== false) { - $mariaDbVersion = $this->getMariaDbMysqlVersionNumber($version); - if (version_compare($mariaDbVersion, '10.6.0', '>=')) { - return new MariaDB1060Platform(); - } - - if (version_compare($mariaDbVersion, '10.5.2', '>=')) { - return new MariaDB1052Platform(); - } - - return new MariaDBPlatform(); - } - - if (version_compare($version, '8.0.0', '>=')) { - return new MySQL80Platform(); - } - - return new MySQLPlatform(); - } - - public function getExceptionConverter(): ExceptionConverterInterface - { - return new ExceptionConverter(); - } - - /** - * Detect MariaDB server version, including hack for some mariadb distributions - * that starts with the prefix '5.5.5-' - * - * @param string $versionString Version string as returned by mariadb server, i.e. '5.5.5-Mariadb-10.0.8-xenial' - * - * @throws InvalidPlatformVersion - */ - private function getMariaDbMysqlVersionNumber(string $versionString): string - { - if ( - preg_match( - '/^(?:5\.5\.5-)?(mariadb-)?(?P\d+)\.(?P\d+)\.(?P\d+)/i', - $versionString, - $versionParts, - ) === 0 - ) { - throw InvalidPlatformVersion::new( - $versionString, - '^(?:5\.5\.5-)?(mariadb-)?..', - ); - } - - return $versionParts['major'] . '.' . $versionParts['minor'] . '.' . $versionParts['patch']; - } -} -- cgit v1.2.3