Skip to content

Commit c24dd04

Browse files
authored
Merge pull request #18 from GrahamCampbell/patch-1
Corrected phpdoc of then
2 parents 02ee67f + 71b6e52 commit c24dd04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Promise.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ interface Promise
3636
* If you do not care about one of the cases, you can set the corresponding callable to null
3737
* The callback will be called when the value arrived and never more than once.
3838
*
39-
* @param callable $onFulfilled called when a response will be available
40-
* @param callable $onRejected called when an exception occurs
39+
* @param callable|null $onFulfilled called when a response will be available
40+
* @param callable|null $onRejected called when an exception occurs
4141
*
4242
* @return Promise a new resolved promise with value of the executed callback (onFulfilled / onRejected)
4343
*/

0 commit comments

Comments
 (0)