mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Fix phpdoc types for call / asyncCall (#260)
Incorrect types were indicated, due to which static analysis led to false positives.
This commit is contained in:
parent
c6f8425473
commit
0fd6b8c157
@ -49,8 +49,8 @@ namespace Amp
|
||||
* Calls the given function, always returning a promise. If the function returns a Generator, it will be run as a
|
||||
* coroutine. If the function throws, a failed promise will be returned.
|
||||
*
|
||||
* @param callable(mixed ...$args): mixed $callback
|
||||
* @param array ...$args Arguments to pass to the function.
|
||||
* @param callable(mixed ...$args):\Generator|mixed $callback
|
||||
* @param mixed ...$args Arguments to pass to the function.
|
||||
*
|
||||
* @return \Amp\Promise
|
||||
*/
|
||||
@ -81,8 +81,8 @@ namespace Amp
|
||||
* Calls the given function. If the function returns a Generator, it will be run as a coroutine. If the function
|
||||
* throws or returns a failing promise, the failure is forwarded to the loop error handler.
|
||||
*
|
||||
* @param callable $callback
|
||||
* @param array ...$args
|
||||
* @param callable(mixed ...$args):\Generator|mixed $callback
|
||||
* @param mixed ...$args
|
||||
*
|
||||
* @throws \TypeError
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user