Skip to content

Commit 4b26a23

Browse files
committed
Fixed namespace issues
1 parent 26e70b0 commit 4b26a23

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use MongoDB\Driver\Exception\RuntimeException;
1313
use MongoDB\Driver\ReadConcern;
1414
use MongoDB\Driver\ReadPreference;
15-
use MongoDB\Driver\Session;
15+
use MongoDB\Driver\Session as DriverSession;
1616
use MongoDB\Driver\WriteConcern;
1717
use MongoDB\Driver\WriteResult;
1818
use 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)

src/Connection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace yii\mongodb;
99

1010
use MongoDB\Driver\Manager;
11-
use MongoDB\Driver\Session;
1211
use yii\base\Component;
1312
use yii\base\InvalidConfigException;
1413
use 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

0 commit comments

Comments
 (0)