Skip to content

Commit

Permalink
Fixed Promise\promisify
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Dec 5, 2016
1 parent 171c069 commit df6a13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Hprose/Promise/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function toPromise($obj) {
}

function promisify($fn) {
return Future\promisify($obj);
return Future\promisify($fn);
}

if (class_exists("\\Generator")) {
Expand Down

0 comments on commit df6a13b

Please sign in to comment.