Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[2.x] Template params can only have one argument #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ trigger at the earliest possible time in the future.

### parallel()

The `parallel(array<callable():PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<array<mixed>,Exception>` function can be used
The `parallel(array<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>>` function can be used
like this:

```php
Expand Down Expand Up @@ -203,7 +203,7 @@ React\Async\parallel([

### series()

The `series(array<callable():PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<array<mixed>,Exception>` function can be used
The `series(array<callable():PromiseInterface<mixed>> $tasks): PromiseInterface<array<mixed>>` function can be used
like this:

```php
Expand Down Expand Up @@ -245,7 +245,7 @@ React\Async\series([

### waterfall()

The `waterfall(array<callable(mixed=):PromiseInterface<mixed,Exception>> $tasks): PromiseInterface<mixed,Exception>` function can be used
The `waterfall(array<callable(mixed=):PromiseInterface<mixed>> $tasks): PromiseInterface<mixed>` function can be used
like this:

```php
Expand Down
12 changes: 6 additions & 6 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ function delay($seconds)
}

/**
* @param array<callable():PromiseInterface<mixed,Exception>> $tasks
* @return PromiseInterface<array<mixed>,Exception>
* @param array<callable():PromiseInterface<mixed>> $tasks
* @return PromiseInterface<array<mixed>>
*/
function parallel(array $tasks)
{
Expand Down Expand Up @@ -237,8 +237,8 @@ function parallel(array $tasks)
}

/**
* @param array<callable():PromiseInterface<mixed,Exception>> $tasks
* @return PromiseInterface<array<mixed>,Exception>
* @param array<callable():PromiseInterface<mixed>> $tasks
* @return PromiseInterface<array<mixed>>
*/
function series(array $tasks)
{
Expand Down Expand Up @@ -277,8 +277,8 @@ function series(array $tasks)
}

/**
* @param array<callable(mixed=):PromiseInterface<mixed,Exception>> $tasks
* @return PromiseInterface<mixed,Exception>
* @param array<callable(mixed=):PromiseInterface<mixed>> $tasks
* @return PromiseInterface<mixed>
*/
function waterfall(array $tasks)
{
Expand Down