Skip to content

Commit 326a344

Browse files
committed
Fix some PHPStan errors
1 parent ffe629c commit 326a344

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/Function/curry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* @category Function
2727
*
2828
* @param callable $func The function to curry.
29-
* @param int $arity The arity of `func`.
29+
* @param int|null $arity The arity of `func`.
3030
*
3131
* @return callable Returns the new curried function.
3232
* @example

src/Function/delay.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
*
1818
* @category Function
1919
*
20-
* @param callable $func The function to delay.
21-
* @param int $wait The number of milliseconds to delay invocation.
22-
* @param mixed[] $args
20+
* @param callable $func The function to delay.
21+
* @param int $wait The number of milliseconds to delay invocation.
22+
* @param array<int, mixed> $args
2323
*
2424
* @return int the timer id.
2525
* @example

src/Function/partial.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*
2121
* @category Function
2222
*
23-
* @param callable $func The function to partially apply arguments to.
24-
* @param mixed[] $partials The arguments to be partially applied.
23+
* @param callable $func The function to partially apply arguments to.
24+
* @param array<int, mixed> $partials The arguments to be partially applied.
2525
*
2626
* @return callable Returns the new partially applied function.
2727
*

src/Function/wrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @category Function
2020
*
21-
* @param mixed value The value to wrap.
21+
* @param mixed $value The value to wrap.
2222
* @param callable $wrapper The wrapper function.
2323
*
2424
* @return callable the new function.

0 commit comments

Comments
 (0)