Completed
Push — master ( 0c02c0...5733a1 )
by Michał
03:22
created
src/utils/Arr.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      *
55 55
      * @param   array   $array      The array to which the element should be added.
56 56
      * @param   string  $key        The key at which the value should be added.
57
-     * @param   mixed   $value      The value of the element.
57
+     * @param   string   $value      The value of the element.
58 58
      * @param   string  $delimiter  The delimiter to use when exploding the key into parts.
59 59
      */
60 60
     public static function add(array& $array, string $key, $value, string $delimiter = null)
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      * @param   array           $array      The array to search in.
380 380
      * @param   string|array    $key        The string delimited key or a chain (array) of nested keys pointing
381 381
      *                                      to the desired key.
382
-     * @param   mixed           $default    The default value.
382
+     * @param   null|string           $default    The default value.
383 383
      * @param   string          $delimiter  The delimiter to use when exploding the key into parts.
384 384
      * @return  mixed
385 385
      */
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      * callback returns a truthy value. If a number is passed, the last n values are excluded from the result.
467 467
      *
468 468
      * @param   array           $array      The array to traverse.
469
-     * @param   callable|int    $callback   The truth test the value should pass or an integer denoting how many
469
+     * @param   boolean    $callback   The truth test the value should pass or an integer denoting how many
470 470
      *                                      of the final elements of the array should be excluded. The count is
471 471
      *                                      1-indexed, ie. if you want to exclude the last 2 elements, pass 2.
472 472
      * @param   mixed           $default    The default value to be returned if none of the elements passes the test.
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
      *  - @see Arr::tail()
773 773
      *
774 774
      * @param   array               $array      The array to traverse.
775
-     * @param   callable|int|bool   $callback   The truth test the value should pass or an integer denoting how many
775
+     * @param   boolean   $callback   The truth test the value should pass or an integer denoting how many
776 776
      *                                          of the initial elements of the array should be excluded. The count
777 777
      *                                          is 1-indexed, ie. if you want to exclude the first 2 elements, pass 2.
778 778
      *                                          When a falsy value is given, the method will return all but the first
Please login to merge, or discard this patch.