We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8f97f19 + e3a875d commit 4ec1208Copy full SHA for 4ec1208
1 file changed
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