Skip to content

Commit cbb8b17

Browse files
committed
OAuthListener::initToken and OAuthListener::initConsumer must accept null parameter(s)
1 parent 3a3cc6d commit cbb8b17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Bitbucket/API/Http/Listener/OAuthListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function getSigner()
215215
* @param TokenInterface|null $token
216216
* @return TokenInterface
217217
*/
218-
protected function initToken(TokenInterface $token)
218+
protected function initToken($token)
219219
{
220220
return (!is_null($token)) ?
221221
$token :
@@ -227,10 +227,10 @@ protected function initToken(TokenInterface $token)
227227

228228
/**
229229
* @access public
230-
* @param ConsumerInterface $consumer
230+
* @param ConsumerInterface|null $consumer
231231
* @return ConsumerInterface
232232
*/
233-
protected function initConsumer(ConsumerInterface $consumer)
233+
protected function initConsumer($consumer)
234234
{
235235
return (!is_null($consumer)) ?
236236
$consumer :

0 commit comments

Comments
 (0)