From df6a13be06042cbb2b9459afe973cfb69631adec Mon Sep 17 00:00:00 2001 From: Ma Bingyao Date: Mon, 5 Dec 2016 21:02:11 +0800 Subject: [PATCH] Fixed Promise\promisify --- src/Hprose/Promise/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Hprose/Promise/functions.php b/src/Hprose/Promise/functions.php index 97b6a1a5..2e19db56 100644 --- a/src/Hprose/Promise/functions.php +++ b/src/Hprose/Promise/functions.php @@ -128,7 +128,7 @@ function toPromise($obj) { } function promisify($fn) { - return Future\promisify($obj); + return Future\promisify($fn); } if (class_exists("\\Generator")) {