Merge pull request #6188 from MrPetovan/bug/5928-protect-oauthexception

Protect OAuthException declaration to avoid conflict with php-pecl-oauth
This commit is contained in:
Michael Vogel 2018-11-23 07:09:49 +01:00 committed by GitHub
commit 52b342a90c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,8 +3,10 @@
/* Generic exception class
*/
class OAuthException extends Exception {
if (!class_exists('OAuthException', false)) {
class OAuthException extends Exception {
// pass
}
}
class OAuthConsumer {