Skip to content

Commit 7820cdb

Browse files
committed
Remove DBAL 3 feature detection
1 parent bdc0d78 commit 7820cdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Session/Storage/Handler/SessionHandlerFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ public static function createHandler(object|string $connection, array $options =
7575
$config = new Configuration();
7676
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
7777

78-
$connection = DriverManager::getConnection($params, $config);
79-
$connection = method_exists($connection, 'getNativeConnection') ? $connection->getNativeConnection() : $connection->getWrappedConnection();
78+
$connection = DriverManager::getConnection($params, $config)->getNativeConnection();
8079
// no break;
8180

8281
case str_starts_with($connection, 'mssql://'):

0 commit comments

Comments
 (0)