From 4263a2e2afb74b8add6247bfcaa3c3946ba8688f Mon Sep 17 00:00:00 2001 From: Carlos Gallardo Date: Mon, 16 Mar 2020 10:03:24 -0700 Subject: [PATCH] Update OAuthListener.php php 7.4 compatibility --- lib/Bitbucket/API/Http/Listener/OAuthListener.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Bitbucket/API/Http/Listener/OAuthListener.php b/lib/Bitbucket/API/Http/Listener/OAuthListener.php index 4bf395a..e8a3a93 100644 --- a/lib/Bitbucket/API/Http/Listener/OAuthListener.php +++ b/lib/Bitbucket/API/Http/Listener/OAuthListener.php @@ -217,9 +217,9 @@ protected function getSigner() */ protected function initToken($token) { - return (!is_null($token)) ? + return ((!is_null($token)) ? $token : - empty($this->config['oauth_token']) ? + empty($this->config['oauth_token'])) ? new OAuth1\Token\NullToken() : new OAuth1\Token\Token($this->config['oauth_token'], $this->config['oauth_token_secret']) ;