Skip to content

Commit eed7f3d

Browse files
Warxcellspawnia
andauthored
Update src/Executor/Promise/Promise.php
Co-authored-by: Benedikt Franke <[email protected]>
1 parent 4ab8722 commit eed7f3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Executor/Promise/Promise.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function __construct($adoptedPromise, PromiseAdapter $adapter)
3232
}
3333

3434
/**
35-
* @param Closure(T):mixed $onfulfilled
36-
* @param Closure(Throwable):mixed $onRejected
35+
* @param (callable(TFulfilled): mixed)|null $onFulfilled
36+
* @param (callable(Throwable): mixed)|null $onRejected
3737
* @return Promise<T>
3838
*/
3939
public function then(?callable $onFulfilled = null, ?callable $onRejected = null): Promise

0 commit comments

Comments
 (0)