Completed
Pull Request — master (#1667)
by Jonathan
01:48
created
lib/Elastica/Node/Info.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * node is running on
62 62
      * Example 2: get('os', 'mem') returns an array with all mem infos
63 63
      *
64
-     * @return mixed Data array entry or null if not found
64
+     * @return string Data array entry or null if not found
65 65
      */
66 66
     public function get()
67 67
     {
Please login to merge, or discard this patch.
lib/Elastica/JSON.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
      * @see http://php.net/manual/en/function.json-decode.php
16 16
      * @see http://php.net/manual/en/function.json-last-error.php
17 17
      *
18
-     * @param string $args,... JSON string to parse
19 18
      *
20 19
      * @throws JSONParseException
21 20
      *
21
+     * @param string $args
22 22
      * @return array PHP array representation of JSON string
23 23
      */
24 24
     public static function parse($args/* inherit from json_decode */)
@@ -49,7 +49,6 @@  discard block
 block discarded – undo
49 49
      * @see http://php.net/manual/en/function.json-encode.php
50 50
      * @see http://php.net/manual/en/function.json-last-error.php
51 51
      *
52
-     * @param mixed $args,... Target to stringify
53 52
      *
54 53
      * @throws JSONParseException
55 54
      *
Please login to merge, or discard this patch.
lib/Elastica/Bulk/Action.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-     * @param string|int $routing
157
+     * @param string|boolean $routing
158 158
      *
159 159
      * @return $this
160 160
      */
Please login to merge, or discard this patch.
lib/Elastica/Query.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -373,7 +373,7 @@
 block discarded – undo
373 373
     /**
374 374
      * Sets a post_filter to the current query.
375 375
      *
376
-     * @param array|AbstractQuery $filter
376
+     * @param AbstractQuery $filter
377 377
      *
378 378
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-post-filter
379 379
      */
Please login to merge, or discard this patch.
lib/Elastica/AbstractUpdateAction.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
     }
189 189
 
190 190
     /**
191
-     * @param array|string $fields
191
+     * @param string $fields
192 192
      *
193 193
      * @return $this
194 194
      */
@@ -385,9 +385,9 @@  discard block
 block discarded – undo
385 385
     }
386 386
 
387 387
     /**
388
-     * @param array $fields if empty array all options will be returned
388
+     * @param string[] $fields if empty array all options will be returned
389 389
      *
390
-     * @return array
390
+     * @return string[]
391 391
      */
392 392
     public function getOptions(array $fields = [])
393 393
     {
Please login to merge, or discard this patch.
lib/Elastica/Document.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -78,6 +78,7 @@
 block discarded – undo
78 78
      *
79 79
      * @throws InvalidException If the given field does not exist
80 80
      *
81
+     * @param string $key
81 82
      * @return mixed
82 83
      */
83 84
     public function get($key)
Please login to merge, or discard this patch.
lib/Elastica/Aggregation/Filter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -12,6 +12,9 @@
 block discarded – undo
12 12
  */
13 13
 class Filter extends AbstractAggregation
14 14
 {
15
+    /**
16
+     * @param AbstractQuery $filter
17
+     */
15 18
     public function __construct(string $name, ?AbstractQuery $filter = null)
16 19
     {
17 20
         parent::__construct($name);
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      * Sets / overwrites a specific config value.
187 187
      *
188 188
      * @param string $key   Key to set
189
-     * @param mixed  $value Value
189
+     * @param string  $value Value
190 190
      *
191 191
      * @return $this
192 192
      */
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
     /**
199
-     * @param array|string $keys    config key or path of config keys
200
-     * @param mixed        $default default value will be returned if key was not found
199
+     * @param string[] $keys    config key or path of config keys
200
+     * @param boolean        $default default value will be returned if key was not found
201 201
      *
202 202
      * @return mixed
203 203
      */
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
      *
286 286
      * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
287 287
      *
288
-     * @param array|\Elastica\Document[] $docs Array of Elastica\Document
288
+     * @param Document[] $docs Array of Elastica\Document
289 289
      *
290 290
      * @throws \Elastica\Exception\InvalidException If docs is empty
291 291
      */
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     /**
408 408
      * Bulk deletes documents.
409 409
      *
410
-     * @param array|\Elastica\Document[] $docs
410
+     * @param Document[] $docs
411 411
      *
412 412
      * @throws \Elastica\Exception\InvalidException
413 413
      */
Please login to merge, or discard this patch.
lib/Elastica/Search.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,6 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     /**
72 72
      * Constructs search object.
73
+     * @param BuilderInterface $builder
73 74
      */
74 75
     public function __construct(Client $client, ?BuilderInterface $builder = null)
75 76
     {
@@ -282,7 +283,7 @@  discard block
 block discarded – undo
282 283
     /**
283 284
      * Search in the set indices.
284 285
      *
285
-     * @param string|array|Query $query
286
+     * @param string $query
286 287
      * @param int|array          $options Limit or associative array of options (option=>value)
287 288
      *
288 289
      * @throws InvalidException
@@ -310,7 +311,7 @@  discard block
 block discarded – undo
310 311
     }
311 312
 
312 313
     /**
313
-     * @param string|array|Query $query
314
+     * @param string $query
314 315
      * @param bool               $fullResult By default only the total hit count is returned. If set to true, the full ResultSet including aggregations is returned
315 316
      *
316 317
      * @return int|ResultSet
Please login to merge, or discard this patch.