Skip to content

Commit e0915f6

Browse files
authored
Fix interface bug (#337)
1 parent 06090e3 commit e0915f6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/Connection/ConnectionInterface.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@ public function close(): void;
107107
*/
108108
public function getCacheKey(): array;
109109

110-
/**
111-
* Returns current DB driver.
112-
*
113-
* @return PDODriverInterface - DB driver used to create current connection
114-
*/
115-
public function getDriver(): PDODriverInterface;
116-
117110
/**
118111
* Returns the ID of the last inserted row or sequence value.
119112
*

src/Driver/PDO/ConnectionPDOInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ public function getPDO(): ?PDO;
3333
*/
3434
public function getActivePDO(string $sql = '', ?bool $forRead = null): ?PDO;
3535

36+
/**
37+
* Returns current DB driver.
38+
*
39+
* @return PDODriverInterface - DB driver used to create current connection
40+
*/
41+
public function getDriver(): PDODriverInterface;
42+
3643
/**
3744
* Return emulate prepare value.
3845
*/

0 commit comments

Comments
 (0)