From 941fb47f6c0cd97d35d4c23b4306b4a92113accc Mon Sep 17 00:00:00 2001 From: Matthew Keasling Date: Sat, 28 Nov 2015 09:26:34 -0800 Subject: [PATCH] Fix Closure namespace issue --- src/Auth0.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Auth0.php b/src/Auth0.php index d0561572..efdbcbc4 100644 --- a/src/Auth0.php +++ b/src/Auth0.php @@ -435,13 +435,13 @@ final public function checkRequirements() } /** - * If debug mode is set, sends $info to debugger Closure. + * If debug mode is set, sends $info to debugger \Closure. * * @param mixed $info Info to debug. It will be converted to string. */ public function debugInfo($info) { - if ($this->debug_mode && (is_object($this->debugger) && ($this->debugger instanceof Closure))) { + if ($this->debug_mode && (is_object($this->debugger) && ($this->debugger instanceof \Closure))) { list(, $caller) = debug_backtrace(false); $caller_function = $caller['function']; @@ -589,7 +589,7 @@ final public function getDebugMode() * * @return Auth0\SDK\BaseAuth0 */ - final public function setDebugger(Closure $debugger) + final public function setDebugger(\Closure $debugger) { $this->debugger = $debugger;