@@ -190,7 +190,7 @@ |
||
190 | 190 | /** |
191 | 191 | * Returns parsed current line. |
192 | 192 | * |
193 | - * @return mixed |
|
193 | + * @return string |
|
194 | 194 | */ |
195 | 195 | public function current() |
196 | 196 | { |
@@ -262,7 +262,7 @@ |
||
262 | 262 | * @param array $properties |
263 | 263 | * @param string $annotation |
264 | 264 | * |
265 | - * @return string |
|
265 | + * @return boolean |
|
266 | 266 | */ |
267 | 267 | private function isUniqueAnnotation($properties, $annotation) |
268 | 268 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param string $commitMode |
30 | - * @param array|null $bulkParams BulkQueries or BulkResponse, depending on event |
|
30 | + * @param callable $bulkParams BulkQueries or BulkResponse, depending on event |
|
31 | 31 | */ |
32 | 32 | public function __construct($commitMode, $bulkParams = []) |
33 | 33 | { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | * |
133 | 133 | * @param \ReflectionProperty $property |
134 | 134 | * |
135 | - * @return Property|null |
|
135 | + * @return \ReflectionProperty |
|
136 | 136 | */ |
137 | 137 | private function getPropertyAnnotationData(\ReflectionProperty $property) |
138 | 138 | { |
@@ -295,6 +295,7 @@ discard block |
||
295 | 295 | * |
296 | 296 | * @param \ReflectionClass $reflectionClass |
297 | 297 | * @param string $property |
298 | + * @param string|null $propertyType |
|
298 | 299 | * |
299 | 300 | * @return array |
300 | 301 | */ |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | * |
354 | 354 | * @param array $params Parameters that will be passed to the flush or refresh queries. |
355 | 355 | * |
356 | - * @return null|array |
|
356 | + * @return callable|null |
|
357 | 357 | * |
358 | 358 | * @throws BulkWithErrorsException |
359 | 359 | */ |
@@ -416,7 +416,7 @@ discard block |
||
416 | 416 | * |
417 | 417 | * @throws \InvalidArgumentException |
418 | 418 | * |
419 | - * @return null|array |
|
419 | + * @return callable|null |
|
420 | 420 | */ |
421 | 421 | public function bulk($operation, $type, array $query) |
422 | 422 | { |
@@ -588,7 +588,7 @@ discard block |
||
588 | 588 | * @param string $id Document ID to find |
589 | 589 | * @param string $routing Custom routing for the document |
590 | 590 | * |
591 | - * @return object |
|
591 | + * @return null|\ReflectionClass |
|
592 | 592 | */ |
593 | 593 | public function find($className, $id, $routing = null) |
594 | 594 | { |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | * |
619 | 619 | * @deprecated use strict return type functions from Repository instead. |
620 | 620 | * |
621 | - * @param array $types |
|
621 | + * @param string[] $types |
|
622 | 622 | * @param Search $search |
623 | 623 | * @param string $resultsType |
624 | 624 | * |
@@ -640,7 +640,7 @@ discard block |
||
640 | 640 | * |
641 | 641 | * @deprecated use strict return type functions from Repository class instead. |
642 | 642 | * |
643 | - * @param array $raw |
|
643 | + * @param callable $raw |
|
644 | 644 | * @param string $resultsType |
645 | 645 | * @param string $scrollDuration |
646 | 646 | * |
@@ -707,7 +707,7 @@ discard block |
||
707 | 707 | * @param string $scrollDuration |
708 | 708 | * @param string $resultsType |
709 | 709 | * |
710 | - * @return mixed |
|
710 | + * @return callable |
|
711 | 711 | * |
712 | 712 | * @throws \Exception |
713 | 713 | */ |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | } |
74 | 74 | |
75 | 75 | /** |
76 | - * @return array |
|
76 | + * @return string |
|
77 | 77 | */ |
78 | 78 | public function getType() |
79 | 79 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @param string $id Document ID to find |
87 | 87 | * @param string $routing Custom routing for the document |
88 | 88 | * |
89 | - * @return object |
|
89 | + * @return null|\ReflectionClass |
|
90 | 90 | */ |
91 | 91 | public function find($id, $routing = null) |
92 | 92 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * Parses scroll configuration from raw response. |
214 | 214 | * |
215 | - * @param array $raw |
|
215 | + * @param callable $raw |
|
216 | 216 | * @param string $scrollDuration |
217 | 217 | * |
218 | 218 | * @return array |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | * |
392 | 392 | * @param string $className |
393 | 393 | * |
394 | - * @return array |
|
394 | + * @return string |
|
395 | 395 | */ |
396 | 396 | private function resolveType($className) |
397 | 397 | { |