From 1b43e4d820b5986782cdab9ded4bfe28d17c856e Mon Sep 17 00:00:00 2001 From: Sina sharifzade Date: Fri, 22 Jan 2016 11:04:20 +0330 Subject: [PATCH] fix callback call --- src/CallbackStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CallbackStream.php b/src/CallbackStream.php index 1b065387..c8e3b678 100644 --- a/src/CallbackStream.php +++ b/src/CallbackStream.php @@ -155,7 +155,7 @@ public function getContents() { $callback = $this->detach(); - return $callback ? $callback() : ''; + return $callback ? call_user_fanc($callback) : ''; } /**