We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f97f19 commit e3a875dCopy full SHA for e3a875d
src/Codeception/Lib/Driver/Db.php
@@ -91,7 +91,7 @@ public function __construct(string $dsn, string $user = null, string $password =
91
92
public function __destruct()
93
{
94
- if ($this->dbh->inTransaction()) {
+ if ($this->dbh !== null && $this->dbh->inTransaction()) {
95
$this->dbh->rollBack();
96
}
97
0 commit comments