Completed
Pull Request — master (#656)
by
unknown
04:10
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.
Service/Repository.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     }
73 73
 
74 74
     /**
75
-     * @return array
75
+     * @return string
76 76
      */
77 77
     public function getType()
78 78
     {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      *
85 85
      * @param string $id Document ID to find
86 86
      *
87
-     * @return object
87
+     * @return null|\ReflectionClass
88 88
      */
89 89
     public function find($id)
90 90
     {
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
      *
277 277
      * @param string $className
278 278
      *
279
-     * @return array
279
+     * @return string
280 280
      */
281 281
     private function resolveType($className)
282 282
     {
Please login to merge, or discard this patch.
Mapping/DocumentParser.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Result/Converter.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,10 +38,10 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Converts raw array to document.
40 40
      *
41
-     * @param array   $rawData
41
+     * @param callable   $rawData
42 42
      * @param Manager $manager
43 43
      *
44
-     * @return object
44
+     * @return \ReflectionClass
45 45
      *
46 46
      * @throws \LogicException
47 47
      */
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      * @param \ReflectionClass $object
80 80
      * @param array            $aliases
81 81
      *
82
-     * @return object
82
+     * @return \ReflectionClass
83 83
      */
84 84
     public function assignArrayToObject(array $array, $object, array $aliases)
85 85
     {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      *
136 136
      * @param mixed $object
137 137
      * @param array $aliases
138
-     * @param array $fields
138
+     * @param string[] $fields
139 139
      *
140 140
      * @return array
141 141
      */
Please login to merge, or discard this patch.