Completed
Pull Request — master (#1173)
by Aaron
03:54
created
lib/Elastica/AbstractUpdateAction.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
     }
324 324
 
325 325
     /**
326
-     * @param array|string $fields
326
+     * @param string $fields
327 327
      *
328 328
      * @return $this
329 329
      */
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
     }
547 547
 
548 548
     /**
549
-     * @param array $fields         if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing
549
+     * @param string[] $fields         if empty array all options will be returned, field names can be either with underscored either without, i.e. _percolate, routing
550 550
      * @param bool  $withUnderscore should option keys contain underscore prefix
551 551
      *
552 552
      * @return array
Please login to merge, or discard this patch.
lib/Elastica/Client.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * Sets / overwrites a specific config value.
188 188
      *
189 189
      * @param string $key   Key to set
190
-     * @param mixed  $value Value
190
+     * @param string  $value Value
191 191
      *
192 192
      * @return $this
193 193
      */
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
     }
198 198
 
199 199
     /**
200
-     * @param array|string $keys    config key or path of config keys
201
-     * @param mixed        $default default value will be returned if key was not found
200
+     * @param string[] $keys    config key or path of config keys
201
+     * @param boolean        $default default value will be returned if key was not found
202 202
      *
203 203
      * @return mixed
204 204
      */
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
     /**
331 331
      * Update document, using update script. Requires elasticsearch >= 0.19.0.
332 332
      *
333
-     * @param int|string                                               $id      document id
333
+     * @param string                                               $id      document id
334 334
      * @param array|\Elastica\Script\AbstractScript|\Elastica\Document $data    raw data for request body
335 335
      * @param string                                                   $index   index to update
336 336
      * @param string                                                   $type    type of index to update
@@ -551,8 +551,8 @@  discard block
 block discarded – undo
551 551
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
552 552
      *
553 553
      * @param array                  $ids     Document ids
554
-     * @param string|\Elastica\Index $index   Index name
555
-     * @param string|\Elastica\Type  $type    Type of documents
554
+     * @param Index $index   Index name
555
+     * @param Type  $type    Type of documents
556 556
      * @param string|bool            $routing Optional routing key for all ids
557 557
      *
558 558
      * @throws \Elastica\Exception\InvalidException
Please login to merge, or discard this patch.
lib/Elastica/Document.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,10 +37,10 @@
 block discarded – undo
37 37
     /**
38 38
      * Creates a new document.
39 39
      *
40
-     * @param int|string   $id    OPTIONAL $id Id is create if empty
40
+     * @param string   $id    OPTIONAL $id Id is create if empty
41 41
      * @param array|string $data  OPTIONAL Data array
42
-     * @param Type|string  $type  OPTIONAL Type name
43
-     * @param Index|string $index OPTIONAL Index name
42
+     * @param string  $type  OPTIONAL Type name
43
+     * @param Index $index OPTIONAL Index name
44 44
      */
45 45
     public function __construct($id = '', $data = array(), $type = '', $index = '')
46 46
     {
Please login to merge, or discard this patch.
lib/Elastica/Index.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
      * @link https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html
226 226
      *
227 227
      * @param array      $args    OPTIONAL Arguments to use
228
-     * @param bool|array $options OPTIONAL
228
+     * @param boolean $options OPTIONAL
229 229
      *                            bool=> Deletes index first if already exists (default = false).
230 230
      *                            array => Associative array of options (option=>value)
231 231
      *
Please login to merge, or discard this patch.