Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Closure namespace issue #49

Merged
merged 1 commit into from
Nov 29, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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