Added default value for final argument in ClientInterface::getClient(). Fixes #56

This commit is contained in:
Alex Bilbie 2013-05-14 09:00:36 +01:00
parent ee9549287e
commit 92b6ce3335
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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();