Completed
Push — master ( 0fc226...e4c266 )
by Michał
02:50
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.
src/utils/Func.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,7 @@  discard block
 block discarded – undo
77 77
      * Example: Func::compose(f, g, h)(x) is the equivalent of f(g(h(x))).
78 78
      *
79 79
      * @param   callable[]  ...$callables   The callables to compose.
80
+     * @param string $callables
80 81
      * @return  \Closure
81 82
      */
82 83
     public static function compose(callable ...$callables) : \Closure
@@ -185,6 +186,7 @@  discard block
 block discarded – undo
185 186
      *
186 187
      * @param   callable    $callback           The callable to wrap.
187 188
      * @param   mixed       ...$prependedArgs   The arguments to prepend to the callback.
189
+     * @param string $prependedArgs
188 190
      * @return  \Closure                        The wrapper.
189 191
      */
190 192
     public static function partial(callable $callback, ...$prependedArgs) : \Closure
@@ -200,6 +202,7 @@  discard block
 block discarded – undo
200 202
      *
201 203
      * @param   callable    $callback           The callable to wrap.
202 204
      * @param   mixed       ...$appendedArgs    The arguments to append to the callback.
205
+     * @param string $appendedArgs
203 206
      * @return  \Closure                        The wrapper.
204 207
      */
205 208
     public static function partialRight(callable $callback, ...$appendedArgs) : \Closure
Please login to merge, or discard this patch.