Skip to content

Commit d9413e7

Browse files
ziaratbansamdark
andauthored
Update src/Connection.php
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
1 parent 05aa059 commit d9413e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Connection.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,8 +360,9 @@ public function open()
360360
$this->manager->selectServer($this->manager->getReadPreference());
361361

362362
$this->initConnection();
363-
if($this->enableProfiling)
363+
if ($this->enableProfiling) {
364364
Yii::endProfile($token, __METHOD__);
365+
}
365366
} catch (\Exception $e) {
366367
if($this->enableProfiling)
367368
Yii::endProfile($token, __METHOD__);

0 commit comments

Comments
 (0)