From 92b6ce3335610fd7be7fff2dede6a6a9be48dcb9 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 14 May 2013 09:00:36 +0100 Subject: [PATCH] Added default value for final argument in ClientInterface::getClient(). Fixes #56 --- src/League/OAuth2/Server/Storage/ClientInterface.php | 4 ++-- src/League/OAuth2/Server/Storage/PDO/Client.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/League/OAuth2/Server/Storage/ClientInterface.php b/src/League/OAuth2/Server/Storage/ClientInterface.php index b98da03d..72538561 100644 --- a/src/League/OAuth2/Server/Storage/ClientInterface.php +++ b/src/League/OAuth2/Server/Storage/ClientInterface.php @@ -50,8 +50,8 @@ interface ClientInterface * @param string $clientId The client's ID * @param string $clientSecret The client's secret (default = "null") * @param string $redirectUri The client's redirect URI (default = "null") - * @param string $grantType The grant type used in the request + * @param string $grantType The grant type used in the request (default = "null") * @return bool|array Returns false if the validation fails, array on success */ - public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType); + public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType = null); } \ No newline at end of file diff --git a/src/League/OAuth2/Server/Storage/PDO/Client.php b/src/League/OAuth2/Server/Storage/PDO/Client.php index ced1a3ca..1fcb3642 100644 --- a/src/League/OAuth2/Server/Storage/PDO/Client.php +++ b/src/League/OAuth2/Server/Storage/PDO/Client.php @@ -6,7 +6,7 @@ use League\OAuth2\Server\Storage\ClientInterface; class Client implements ClientInterface { - public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType) + public function getClient($clientId, $clientSecret = null, $redirectUri = null, $grantType = null) { $db = \ezcDbInstance::get();