Skip to content

Commit 1376e14

Browse files
committed
fixed CS
1 parent 28029a2 commit 1376e14

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ private function getServerVersion()
252252
{
253253
$params = $this->con->getParams();
254254

255+
// Explicit platform version requested (supersedes auto-detection), so we respect it.
255256
if (isset($params['serverVersion'])) {
256-
return $params['serverVersion']; // Explicit platform version requested (supersedes auto-detection), so we respect it.
257+
return $params['serverVersion'];
257258
}
258259

259260
$wrappedConnection = $this->con->getWrappedConnection();
@@ -262,10 +263,12 @@ private function getServerVersion()
262263
return $wrappedConnection->getServerVersion();
263264
}
264265

265-
if ($wrappedConnection instanceof \PDO) { // Support DBAL 2.4 by accessing it directly when using PDO PgSQL
266+
// Support DBAL 2.4 by accessing it directly when using PDO PgSQL
267+
if ($wrappedConnection instanceof \PDO) {
266268
return $wrappedConnection->getAttribute(\PDO::ATTR_SERVER_VERSION);
267269
}
268270

269-
return ''; // If we cannot guess the version, the empty string will mean we won't use the code for newer versions when doing version checks.
271+
// If we cannot guess the version, the empty string will mean we won't use the code for newer versions when doing version checks.
272+
return '';
270273
}
271274
}

0 commit comments

Comments
 (0)