Skip to content

Commit be0e5b1

Browse files
committed
feat: Add support for Odbc\Connection in database resource parameter
Updated the `$databaseNameOrResource` parameter to support `Odbc\Connection`, expanding compatibility for database connections.
1 parent c51a780 commit be0e5b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ToolkitApi/Toolkit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ protected function isDebug()
137137
/**
138138
* if passing an existing resource and naming, don't need the other params.
139139
*
140-
* @param string|resource|PDO $databaseNameOrResource
140+
* @param string|resource|PDO|Odbc\Connection $databaseNameOrResource
141141
* @param string $userOrI5NamingFlag 0 = DB2_I5_NAMING_OFF or 1 = DB2_I5_NAMING_ON
142142
* @param string $password
143143
* @param string $transportType (http, ibm_db2, odbc, ssh, local)

0 commit comments

Comments
 (0)