Completed
Pull Request — master (#220)
by
unknown
03:44
created
lib/Mongo/MongoId.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
     }
201 201
 
202 202
     /**
203
-     * @param $id
203
+     * @param string|null $id
204 204
      * @throws MongoException
205 205
      */
206 206
     private function createObjectID($id)
Please login to merge, or discard this patch.
lib/Mongo/MongoPool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      *
36 36
      * @link http://php.net/manual/en/mongopool.setsize.php
37 37
      * @param int $size
38
-     * @return boolean Returns the former value of pool size
38
+     * @return integer Returns the former value of pool size
39 39
      */
40 40
     public static function setSize($size)
41 41
     {
Please login to merge, or discard this patch.
lib/Alcaeus/MongoDbAdapter/AbstractCursor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     ];
81 81
 
82 82
     /**
83
-     * @return Cursor
83
+     * @return \Traversable
84 84
      */
85 85
     abstract protected function ensureCursor();
86 86
 
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     }
378 378
 
379 379
     /**
380
-     * @return array
380
+     * @return string[]
381 381
      */
382 382
     public function __sleep()
383 383
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCommandCursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @return array
105
+     * @return string[]
106 106
      */
107 107
     public function __sleep()
108 108
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoDB.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -511,6 +511,9 @@  discard block
 block discarded – undo
511 511
         }
512 512
     }
513 513
 
514
+    /**
515
+     * @param string $name
516
+     */
514 517
     private function checkDatabaseName($name)
515 518
     {
516 519
         if (empty($name)) {
@@ -543,7 +546,7 @@  discard block
 block discarded – undo
543 546
     }
544 547
 
545 548
     /**
546
-     * @return array
549
+     * @return string[]
547 550
      */
548 551
     public function __sleep()
549 552
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoGridFS.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,6 @@  discard block
 block discarded – undo
105 105
      * @link http://php.net/manual/en/mongogridfs.find.php
106 106
      * @param array $query The query
107 107
      * @param array $fields Fields to return
108
-     * @param array $options Options for the find command
109 108
      * @return MongoGridFSCursor A MongoGridFSCursor
110 109
      */
111 110
     public function find(array $query = [], array $fields = [])
@@ -446,7 +445,7 @@  discard block
 block discarded – undo
446 445
     }
447 446
 
448 447
     /**
449
-     * @return array
448
+     * @return string[]
450 449
      */
451 450
     public function __sleep()
452 451
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCursor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     }
103 103
 
104 104
     /**
105
-     * @return array
105
+     * @return string[]
106 106
      */
107 107
     public function __sleep()
108 108
     {
Please login to merge, or discard this patch.
lib/Mongo/MongoCollection.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1018,6 +1018,9 @@  discard block
 block discarded – undo
1018 1018
         return null;
1019 1019
     }
1020 1020
 
1021
+    /**
1022
+     * @param string $name
1023
+     */
1021 1024
     private function checkCollectionName($name)
1022 1025
     {
1023 1026
         if (empty($name)) {
@@ -1028,7 +1031,7 @@  discard block
 block discarded – undo
1028 1031
     }
1029 1032
 
1030 1033
     /**
1031
-     * @return array
1034
+     * @return string[]
1032 1035
      */
1033 1036
     public function __sleep()
1034 1037
     {
Please login to merge, or discard this patch.
lib/Mongo/Mongo.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * Returns the address being used by this for slaveOkay reads
53 53
      *
54 54
      * @link http://php.net/manual/en/mongo.getslave.php
55
-     * @return bool The address of the secondary this connection is using for
55
+     * @return boolean|null The address of the secondary this connection is using for
56 56
      * reads. This returns NULL if this is not connected to a replica set or not yet
57 57
      * initialized.
58 58
      */
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * Get slaveOkay setting for this connection
66 66
      *
67 67
      * @link http://php.net/manual/en/mongo.getslaveokay.php
68
-     * @return bool Returns the value of slaveOkay for this instance.
68
+     * @return boolean|null Returns the value of slaveOkay for this instance.
69 69
      */
70 70
     public function getSlaveOkay()
71 71
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      *
78 78
      * @link http://www.php.net/manual/en/mongo.pairconnect.php
79 79
      * @throws MongoConnectionException
80
-     * @return boolean
80
+     * @return boolean|null
81 81
      *
82 82
      * @deprecated Pass a string of the form "mongodb://server1,server2" to the constructor instead of using this method.
83 83
      */
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      *
104 104
      * @link http://php.net/manual/en/mongo.setslaveokay.php
105 105
      * @param bool $ok
106
-     * @return bool returns the former value of slaveOkay for this instance.
106
+     * @return boolean|null returns the former value of slaveOkay for this instance.
107 107
      */
108 108
     public function setSlaveOkay($ok)
109 109
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
      *
116 116
      * @link http://php.net/manual/en/mongo.setpoolsize.php
117 117
      * @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>
118
-     * @return bool Returns the former value of pool size.
118
+     * @return boolean|null Returns the former value of pool size.
119 119
      * @deprecated Relying on this feature is highly discouraged. Please use MongoPool::setSize() instead.
120 120
      */
121 121
     public function setPoolSize($size)
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * @param string $username A username used to identify the connection.
131 131
      * @param string $password A password used to identify the connection.
132 132
      * @throws MongoConnectionException
133
-     * @return boolean If the connection was successful.
133
+     * @return boolean|null If the connection was successful.
134 134
      * @deprecated Pass array("persist" => $id) to the constructor instead of using this method.
135 135
      */
136 136
     public function persistConnect($username = "", $password = "")
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * @param string $username A username used to identify the connection.
146 146
      * @param string $password A password used to identify the connection.
147 147
      * @throws MongoConnectionException
148
-     * @return boolean If the connection was successful.
148
+     * @return boolean|null If the connection was successful.
149 149
      * @deprecated Pass "mongodb://server1,server2" and array("persist" => $id) to the constructor instead of using this method.
150 150
      */
151 151
     public function pairPersistConnect($username = "", $password = "")
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      *
159 159
      * @link http://www.php.net/manual/en/mongo.connectutil.php
160 160
      * @throws MongoConnectionException
161
-     * @return boolean If the connection was successful.
161
+     * @return boolean|null If the connection was successful.
162 162
      */
163 163
     protected function connectUtil()
164 164
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
      * Creates a database error on the database.
218 218
      *
219 219
      * @link http://www.php.net/manual/en/mongo.forceerror.php
220
-     * @return boolean The database response.
220
+     * @return boolean|null The database response.
221 221
      * @deprecated Use MongoDB::forceError() instead.
222 222
      */
223 223
     public function forceError()
Please login to merge, or discard this patch.