Skip to content

Commit

Permalink
remove Doctrine DBAL < 3.3 related code
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 22, 2023
1 parent c9ac1b9 commit 735ac63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ private function getServerVersion(): string
}

// 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();
}
Expand Down

0 comments on commit 735ac63

Please sign in to comment.