From f1567df802094d510edf5efc57b33cfcfce7755e Mon Sep 17 00:00:00 2001 From: Philip Brown Date: Wed, 17 Jul 2013 11:40:06 +0100 Subject: [PATCH] Set $grantType default --- src/League/OAuth2/Server/Storage/Fluent/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/League/OAuth2/Server/Storage/Fluent/Client.php b/src/League/OAuth2/Server/Storage/Fluent/Client.php index b8adeb0a..cf0544d3 100644 --- a/src/League/OAuth2/Server/Storage/Fluent/Client.php +++ b/src/League/OAuth2/Server/Storage/Fluent/Client.php @@ -7,7 +7,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) { if ( ! is_null($redirectUri) && is_null($clientSecret)) { $result = DB::table('oauth_clients') @@ -41,4 +41,4 @@ class Client implements ClientInterface { ); } -} \ No newline at end of file +}