From 6fd294aac5876e178e45cb7c857a6c68511426d1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 22 Nov 2018 22:21:57 -0500 Subject: [PATCH] Protect OAuthException declaration to avoid conflict with php-pecl-oauth --- library/OAuth1.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/OAuth1.php b/library/OAuth1.php index c537f2b252..4746328316 100644 --- a/library/OAuth1.php +++ b/library/OAuth1.php @@ -3,8 +3,10 @@ /* Generic exception class */ -class OAuthException extends Exception { - // pass +if (!class_exists('OAuthException', false)) { + class OAuthException extends Exception { + // pass + } } class OAuthConsumer { -- 2.39.5