Skip to content

Commit f892925

Browse files
committed
Clean up exception docs and use statements
1 parent 8f646a3 commit f892925

File tree

7 files changed

+5
-3
lines changed

7 files changed

+5
-3
lines changed

src/Operation/Aggregate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public function __construct($databaseName, $collectionName, array $pipeline, arr
157157
* @see Executable::execute()
158158
* @param Server $server
159159
* @return Traversable
160+
* @throws UnexpectedValueException if the command response was malformed
160161
*/
161162
public function execute(Server $server)
162163
{

src/Operation/Count.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function __construct($databaseName, $collectionName, $filter = [], array
102102
* @see Executable::execute()
103103
* @param Server $server
104104
* @return integer
105+
* @throws UnexpectedValueException if the command response was malformed
105106
*/
106107
public function execute(Server $server)
107108
{

src/Operation/Distinct.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public function __construct($databaseName, $collectionName, $fieldName, $filter
7979
* @see Executable::execute()
8080
* @param Server $server
8181
* @return mixed[]
82+
* @throws UnexpectedValueException if the command response was malformed
8283
*/
8384
public function execute(Server $server)
8485
{

src/Operation/Find.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
use MongoDB\Driver\ReadPreference;
88
use MongoDB\Driver\Server;
99
use MongoDB\Exception\InvalidArgumentException;
10-
use MongoDB\Exception\RuntimeException;
11-
use MongoDB\Exception\UnexpectedValueException;
1210

1311
/**
1412
* Operation for the find command.

src/Operation/FindAndModify.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ public function __construct($databaseName, $collectionName, array $options)
130130
* @see Executable::execute()
131131
* @param Server $server
132132
* @return object|null
133+
* @throws UnexpectedValueException if the command response was malformed
133134
*/
134135
public function execute(Server $server)
135136
{

src/Operation/ListCollections.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use MongoDB\Driver\Command;
66
use MongoDB\Driver\Query;
77
use MongoDB\Driver\Server;
8-
use MongoDB\Exception\RuntimeException;
98
use MongoDB\Exception\InvalidArgumentException;
109
use MongoDB\Model\CollectionInfoCommandIterator;
1110
use MongoDB\Model\CollectionInfoIterator;

src/Operation/ListDatabases.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public function __construct(array $options = [])
4646
* @see Executable::execute()
4747
* @param Server $server
4848
* @return DatabaseInfoIterator
49+
* @throws UnexpectedValueException if the command response was malformed
4950
*/
5051
public function execute(Server $server)
5152
{

0 commit comments

Comments
 (0)