Skip to content

Commit

Permalink
Merge pull request #18 from GrahamCampbell/patch-1
Browse files Browse the repository at this point in the history
Corrected phpdoc of then
  • Loading branch information
dbu committed Jul 7, 2020
2 parents 02ee67f + 71b6e52 commit c24dd04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ interface Promise
* If you do not care about one of the cases, you can set the corresponding callable to null
* The callback will be called when the value arrived and never more than once.
*
* @param callable $onFulfilled called when a response will be available
* @param callable $onRejected called when an exception occurs
* @param callable|null $onFulfilled called when a response will be available
* @param callable|null $onRejected called when an exception occurs
*
* @return Promise a new resolved promise with value of the executed callback (onFulfilled / onRejected)
*/
Expand Down

0 comments on commit c24dd04

Please sign in to comment.