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 9b9ab36 commit 001e971Copy full SHA for 001e971
src/Codeception/Module/Phalcon4.php
@@ -198,7 +198,7 @@ public function _after(TestInterface $test)
198
{
199
if ($this->config['cleanup'] && isset($this->di['db'])) {
200
$db = $this->di['db'];
201
- while ($db->isUnderTransaction()) {
+ while (($db) && $db->isUnderTransaction()) {
202
$level = $db->getTransactionLevel();
203
try {
204
$db->rollback(true);
0 commit comments