File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1212use MongoDB \Driver \Exception \RuntimeException ;
1313use MongoDB \Driver \ReadConcern ;
1414use MongoDB \Driver \ReadPreference ;
15- use MongoDB \Driver \Session ;
15+ use MongoDB \Driver \Session as DriverSession ;
1616use MongoDB \Driver \WriteConcern ;
1717use MongoDB \Driver \WriteResult ;
1818use Yii ;
@@ -87,7 +87,7 @@ class Command extends BaseObject
8787 */
8888 private $ _readConcern ;
8989 /**
90- * @var Session|null session to be used by this command
90+ * @var DriverSession session to be used by this command
9191 */
9292 private $ _session ;
9393
@@ -173,7 +173,7 @@ public function setReadConcern($readConcern)
173173
174174 /**
175175 * Sets session for this command.
176- * @param Session $session session
176+ * @param DriverSession $session session
177177 * @return $this self reference
178178 */
179179 public function setSession ($ session )
Original file line number Diff line number Diff line change 88namespace yii \mongodb ;
99
1010use MongoDB \Driver \Manager ;
11- use MongoDB \Driver \Session ;
1211use yii \base \Component ;
1312use yii \base \InvalidConfigException ;
1413use Yii ;
@@ -183,7 +182,7 @@ class Connection extends Component
183182 private $ _fileStreamWrapperRegistered = false ;
184183
185184 /**
186- * @var \MongoDB\Driver\Session|null session
185+ * @var \MongoDB\Driver\Session session
187186 */
188187 private $ _session ;
189188
You can’t perform that action at this time.
0 commit comments