Skip to content

Conversation

@blizzrdof77
Copy link

@blizzrdof77 blizzrdof77 commented Jul 15, 2016

Fixes Issue #19

Cause:
PHP Class "OAuthException" being redeclared if it already exists.

Solution:
Only declare if it doesn't already exist.

if (!class_exists('OAuthException')) 
  class OAuthException extends Exception {
    // pass
  }
}

Resolves the following error message:
Cannot redeclare class OAuthException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant