From a9243956792fe08e915021c6965158c4cb288a05 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 22 Nov 2023 10:43:32 +0100 Subject: [PATCH] remove Doctrine DBAL < 3.3 related code --- src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php b/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php index f0d020d512fa3..c68ad5cf1785e 100644 --- a/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php +++ b/src/Symfony/Component/Cache/Adapter/DoctrineDbalAdapter.php @@ -375,8 +375,7 @@ private function getServerVersion(): string return $this->serverVersion; } - // The condition should be removed once support for DBAL <3.3 is dropped - $conn = method_exists($this->conn, 'getNativeConnection') ? $this->conn->getNativeConnection() : $this->conn->getWrappedConnection(); + $conn = $this->conn->getNativeConnection(); if ($conn instanceof ServerInfoAwareConnection) { return $this->serverVersion = $conn->getServerVersion(); }