From 8ac160006334d421b89c285b43d5ef444b0cb3e6 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Fri, 6 Jul 2012 13:51:05 +0100 Subject: [PATCH] Default null values (and string type hinting) for various parameters --- src/oauth2server/DbInterface.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/oauth2server/DbInterface.php b/src/oauth2server/DbInterface.php index c8057250..c02ef506 100644 --- a/src/oauth2server/DbInterface.php +++ b/src/oauth2server/DbInterface.php @@ -4,26 +4,26 @@ interface OAuth2ServerDatabase { public function validateClient( string $clientId, - $clientSecret, - $redirectUri + string $clientSecret = null, + string $redirectUri = null ); public function newSession( string $clientId, string $redirectUri, string $type = 'user', - string $typeId, - $authCode, - $accessToken, + string $typeId = null, + string $authCode = null, + string $accessToken = null, string $stage = 'request' ); public function updateSession( string $clientId, string $type = 'user', - string $typeId, - $authCode, - $accessToken, + string $typeId = null, + string $authCode = null, + string $accessToken = null, string $stage );