Skip to content

Commit

Permalink
Fix Closure namespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mkeasling committed Nov 28, 2015
1 parent d1b12ef commit 941fb47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Auth0.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 941fb47

Please sign in to comment.