@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * @param $fieldName |
91 | 91 | * @param $className |
92 | - * @param $className2 |
|
92 | + * @param string $className2 |
|
93 | 93 | * @return MappingException |
94 | 94 | */ |
95 | 95 | public static function referenceFieldConflict($fieldName, $className, $className2) |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | } |
331 | 331 | |
332 | 332 | /** |
333 | - * @param $subclassName |
|
333 | + * @param string $subclassName |
|
334 | 334 | * @return MappingException |
335 | 335 | */ |
336 | 336 | public static function shardKeyInSingleCollInheritanceSubclass($subclassName) |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | } |
340 | 340 | |
341 | 341 | /** |
342 | - * @param $className |
|
342 | + * @param string $className |
|
343 | 343 | * @return MappingException |
344 | 344 | */ |
345 | 345 | public static function embeddedDocumentCantHaveShardKey($className) |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | } |
359 | 359 | |
360 | 360 | /** |
361 | - * @param $className |
|
361 | + * @param string $className |
|
362 | 362 | * @param $fieldName |
363 | 363 | * @return MappingException |
364 | 364 | */ |
@@ -147,7 +147,7 @@ |
||
147 | 147 | |
148 | 148 | /** |
149 | 149 | * @param string $type |
150 | - * @param string|array $expected |
|
150 | + * @param string[] $expected |
|
151 | 151 | * @param mixed $got |
152 | 152 | * @return MongoDBException |
153 | 153 | */ |
@@ -80,8 +80,8 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param $className |
|
84 | - * @param $methodName |
|
83 | + * @param string $className |
|
84 | + * @param string $methodName |
|
85 | 85 | * @param \Exception|null $previous |
86 | 86 | * |
87 | 87 | * @return self |
@@ -143,7 +143,7 @@ |
||
143 | 143 | * |
144 | 144 | * @see ExpressionVisitor::walkValue() |
145 | 145 | * @param Value $value |
146 | - * @return mixed |
|
146 | + * @return string |
|
147 | 147 | */ |
148 | 148 | public function walkValue(Value $value) |
149 | 149 | { |
@@ -2695,7 +2695,7 @@ |
||
2695 | 2695 | * @param array $data The data for the document. |
2696 | 2696 | * @param array $hints Any hints to account for during reconstitution/lookup of the document. |
2697 | 2697 | * @param object $document The document to be hydrated into in case of creation |
2698 | - * @return object The document instance. |
|
2698 | + * @return callable|null The document instance. |
|
2699 | 2699 | */ |
2700 | 2700 | public function getOrCreateDocument($className, $data, &$hints = array(), $document = null) |
2701 | 2701 | { |