Skip to content

Commit 683eaf5

Browse files
committed
fixed phpDoc
1 parent f76b5dc commit 683eaf5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Utils/Arrays.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ public static function mapWithKeys(array $array, callable $transformer): array
496496

497497
/**
498498
* Invokes all callbacks and returns array of results.
499-
* @param iterable<callable(): mixed> $callbacks
499+
* @param iterable<callable> $callbacks
500500
* @param mixed ...$args
501501
* @return array<mixed>
502502
*/

src/Utils/Callback.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function invokeSafe(string $function, array $args, callable $onErr
5252
/**
5353
* Checks that $callable is valid PHP callback. Otherwise throws exception. If the $syntax is set to true, only verifies
5454
* that $callable has a valid structure to be used as a callback, but does not verify if the class or method actually exists.
55-
* @return callable(): mixed
55+
* @return callable
5656
* @throws Nette\InvalidArgumentException
5757
*/
5858
public static function check(mixed $callable, bool $syntax = false): mixed
@@ -86,7 +86,7 @@ public static function toString(mixed $callable): string
8686

8787
/**
8888
* Returns reflection for method or function used in PHP callback.
89-
* @param callable(): mixed $callable type check is escalated to ReflectionException
89+
* @param callable $callable type check is escalated to ReflectionException
9090
* @throws \ReflectionException if callback is not valid
9191
*/
9292
public static function toReflection($callable): \ReflectionMethod|\ReflectionFunction
@@ -109,7 +109,6 @@ public static function toReflection($callable): \ReflectionMethod|\ReflectionFun
109109

110110
/**
111111
* Checks whether PHP callback is function or static method.
112-
* @param callable(): mixed $callable
113112
*/
114113
public static function isStatic(callable $callable): bool
115114
{
@@ -119,7 +118,6 @@ public static function isStatic(callable $callable): bool
119118

120119
/**
121120
* Unwraps closure created by Closure::fromCallable().
122-
* @param \Closure(): mixed $closure
123121
* @return \Closure|array{object|class-string, string}|callable-string
124122
*/
125123
public static function unwrap(\Closure $closure): callable|array

0 commit comments

Comments
 (0)