Skip to content

Commit 88237ee

Browse files
authored
Merge pull request #75 from WyriHaximus-labs/2.x-template-params-can-only-have-one-argument
[2.x] Template params can only have one argument
2 parents 3ae32f1 + ec540ca commit 88237ee

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ trigger at the earliest possible time in the future.
161161

162162
### parallel()
163163

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

167167
```php
@@ -203,7 +203,7 @@ React\Async\parallel([
203203

204204
### series()
205205

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

209209
```php
@@ -245,7 +245,7 @@ React\Async\series([
245245

246246
### waterfall()
247247

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

251251
```php

src/functions.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ function delay($seconds)
179179
}
180180

181181
/**
182-
* @param array<callable():PromiseInterface<mixed,Exception>> $tasks
183-
* @return PromiseInterface<array<mixed>,Exception>
182+
* @param array<callable():PromiseInterface<mixed>> $tasks
183+
* @return PromiseInterface<array<mixed>>
184184
*/
185185
function parallel(array $tasks)
186186
{
@@ -237,8 +237,8 @@ function parallel(array $tasks)
237237
}
238238

239239
/**
240-
* @param array<callable():PromiseInterface<mixed,Exception>> $tasks
241-
* @return PromiseInterface<array<mixed>,Exception>
240+
* @param array<callable():PromiseInterface<mixed>> $tasks
241+
* @return PromiseInterface<array<mixed>>
242242
*/
243243
function series(array $tasks)
244244
{
@@ -277,8 +277,8 @@ function series(array $tasks)
277277
}
278278

279279
/**
280-
* @param array<callable(mixed=):PromiseInterface<mixed,Exception>> $tasks
281-
* @return PromiseInterface<mixed,Exception>
280+
* @param array<callable(mixed=):PromiseInterface<mixed>> $tasks
281+
* @return PromiseInterface<mixed>
282282
*/
283283
function waterfall(array $tasks)
284284
{

0 commit comments

Comments
 (0)