Completed
Pull Request — master (#678)
by Simonas
03:02
created
Service/Json/JsonReader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Service/Manager.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
      *
319 319
      * @param array $params Parameters that will be passed to the flush or refresh queries.
320 320
      *
321
-     * @return null|array
321
+     * @return callable|null
322 322
      */
323 323
     public function commit(array $params = [])
324 324
     {
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
      *
353 353
      * @throws \InvalidArgumentException
354 354
      *
355
-     * @return null|array
355
+     * @return callable|null
356 356
      */
357 357
     public function bulk($operation, $type, array $query)
358 358
     {
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      * @param string $className Document class name or Elasticsearch type name
508 508
      * @param string $id        Document ID to find
509 509
      *
510
-     * @return object
510
+     * @return null|\ReflectionClass
511 511
      */
512 512
     public function find($className, $id)
513 513
     {
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     /**
532 532
      * Executes given search.
533 533
      *
534
-     * @param array  $types
534
+     * @param string[]  $types
535 535
      * @param Search $search
536 536
      * @param string $resultsType
537 537
      *
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
     /**
552 552
      * Parses raw result.
553 553
      *
554
-     * @param array  $raw
554
+     * @param callable  $raw
555 555
      * @param string $resultsType
556 556
      * @param string $scrollDuration
557 557
      *
Please login to merge, or discard this patch.
Command/DocumentGenerateCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * @param array  $properties
255 255
      * @param string $annotation
256 256
      *
257
-     * @return string
257
+     * @return boolean
258 258
      */
259 259
     private function isUniqueAnnotation($properties, $annotation)
260 260
     {
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
      * Returns formatted exception
553 553
      *
554 554
      * @param string $format
555
-     * @param array  $args
555
+     * @param string[]  $args
556 556
      *
557 557
      * @return \InvalidArgumentException
558 558
      */
Please login to merge, or discard this patch.
Event/CommitEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Service/Repository.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
212 212
     /**
213 213
      * Parses scroll configuration from raw response.
214 214
      *
215
-     * @param $raw
215
+     * @param callable $raw
216 216
      * @param null $scrollDuration
217 217
      *
218 218
      * @return array
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      *
380 380
      * @param string $className
381 381
      *
382
-     * @return array
382
+     * @return string
383 383
      */
384 384
     private function resolveType($className)
385 385
     {
Please login to merge, or discard this patch.