Completed
Pull Request — master (#12)
by
unknown
02:42
created
lib/Mongo/MongoDB.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -292,7 +292,6 @@  discard block
 block discarded – undo
292 292
      * (PECL mongo &gt;= 0.9.0)<br/>
293 293
      * Get a list of collections in this database
294 294
      * @link http://www.php.net/manual/en/mongodb.listcollections.php
295
-     * @param bool $includeSystemCollections [optional] <p>Include system collections.</p>
296 295
      * @return array Returns a list of MongoCollections.
297 296
      */
298 297
     public function listCollections(array $options = [])
@@ -433,7 +432,7 @@  discard block
 block discarded – undo
433 432
      * (PECL mongo &gt;= 0.9.5)<br/>
434 433
      * Creates a database error
435 434
      * @link http://www.php.net/manual/en/mongodb.forceerror.php
436
-     * @return boolean Returns the database response.
435
+     * @return boolean|null Returns the database response.
437 436
      */
438 437
     public function forceError()
439 438
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
      * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error.
273 273
      * @throws MongoCursorException if the "w" option is set and the write fails.
274 274
      * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds.
275
-     * @return bool|array Returns an array containing the status of the insertion if the "w" option is set.
275
+     * @return MongoDB\InsertOneResult Returns an array containing the status of the insertion if the "w" option is set.
276 276
      */
277 277
     public function insert($a, array $options = array())
278 278
     {
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      * @param array $a An array of arrays.
286 286
      * @param array $options Options for the inserts.
287 287
      * @throws MongoCursorException
288
-     * @return mixed f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise.
288
+     * @return MongoDB\InsertManyResult f "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occured ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise.
289 289
      */
290 290
     public function batchInsert(array $a, array $options = array())
291 291
     {
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      * @link http://www.php.net/manual/en/mongocollection.createindex.php
467 467
      * @param array $keys Field or fields to use as index.
468 468
      * @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...).
469
-     * @return array Returns the database response.
469
+     * @return string|false Returns the database response.
470 470
      */
471 471
     public function createIndex(array $keys, array $options = array())
472 472
     {
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
      * @throws MongoException if the inserted document is empty or if it contains zero-length keys. Attempting to insert an object with protected and private properties will cause a zero-length key error.
560 560
      * @throws MongoCursorException if the "w" option is set and the write fails.
561 561
      * @throws MongoCursorTimeoutException if the "w" option is set to a value greater than one and the operation takes longer than MongoCursor::$timeout milliseconds to complete. This does not kill the operation on the server, it is a client-side timeout. The operation in MongoCollection::$wtimeout is milliseconds.
562
-     * @return array|boolean If w was set, returns an array containing the status of the save.
562
+     * @return MongoDB\UpdateResult If w was set, returns an array containing the status of the save.
563 563
      * Otherwise, returns a boolean representing if the array was not empty (an empty array will not be inserted).
564 564
      */
565 565
     public function save($a, array $options = array())
Please login to merge, or discard this patch.
lib/Mongo/Mongo.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @deprecated Pass a string of the form "mongodb://server1,server2" to the constructor instead of using this method.
42 42
      * @link http://www.php.net/manual/en/mongo.pairconnect.php
43 43
      * @throws MongoConnectionException
44
-     * @return boolean
44
+     * @return boolean|null
45 45
      */
46 46
     public function pairConnect() {}
47 47
 
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * Set the size for future connection pools.
92 92
      * @link http://php.net/manual/en/mongo.setpoolsize.php
93 93
      * @param $size <p>The max number of connections future pools will be able to create. Negative numbers mean that the pool will spawn an infinite number of connections.</p>
94
-     * @return bool Returns the former value of pool size.
94
+     * @return boolean|null Returns the former value of pool size.
95 95
      */
96 96
     public function setPoolSize($size) {}
97 97
     /**
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param string $username A username used to identify the connection.
102 102
      * @param string $password A password used to identify the connection.
103 103
      * @throws MongoConnectionException
104
-     * @return boolean If the connection was successful.
104
+     * @return boolean|null If the connection was successful.
105 105
      */
106 106
     public function persistConnect($username = "", $password = "") {}
107 107
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param string $username A username used to identify the connection.
113 113
      * @param string $password A password used to identify the connection.
114 114
      * @throws MongoConnectionException
115
-     * @return boolean If the connection was successful.
115
+     * @return boolean|null If the connection was successful.
116 116
      */
117 117
     public function pairPersistConnect($username = "", $password = "") {}
118 118
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      *
122 122
      * @link http://www.php.net/manual/en/mongo.connectutil.php
123 123
      * @throws MongoConnectionException
124
-     * @return boolean If the connection was successful.
124
+     * @return boolean|null If the connection was successful.
125 125
      */
126 126
     protected function connectUtil() {}
127 127
 
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      * Creates a database error on the database.
154 154
      * @deprecated Use MongoDB::forceError() instead.
155 155
      * @link http://www.php.net/manual/en/mongo.forceerror.php
156
-     * @return boolean The database response.
156
+     * @return boolean|null The database response.
157 157
      */
158 158
     public function forceError() {}
159 159
 }
Please login to merge, or discard this patch.