From 2df6446eb2a33f8d1a10c5359884aea6c02d4f70 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 2 Dec 2014 10:20:55 +0100 Subject: [PATCH 1/3] Fix bad type hintings. --- examples/relational/Storage/AccessTokenStorage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/relational/Storage/AccessTokenStorage.php b/examples/relational/Storage/AccessTokenStorage.php index 995c6147..c724e43f 100644 --- a/examples/relational/Storage/AccessTokenStorage.php +++ b/examples/relational/Storage/AccessTokenStorage.php @@ -34,7 +34,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface /** * {@inheritdoc} */ - public function getScopes(AbstractTokenEntity $token) + public function getScopes(AccessTokenEntity $token) { $result = Capsule::table('oauth_access_token_scopes') ->select(['oauth_scopes.id', 'oauth_scopes.description']) @@ -73,7 +73,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface /** * {@inheritdoc} */ - public function associateScope(AbstractTokenEntity $token, ScopeEntity $scope) + public function associateScope(AccessTokenEntity $token, ScopeEntity $scope) { Capsule::table('oauth_access_token_scopes') ->insert([ @@ -85,7 +85,7 @@ class AccessTokenStorage extends AbstractStorage implements AccessTokenInterface /** * {@inheritdoc} */ - public function delete(AbstractTokenEntity $token) + public function delete(AccessTokenEntity $token) { Capsule::table('oauth_access_token_scopes') ->where('access_token', $token->getId()) From 2af7195f06205c09d350834b5475fd00a835d436 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 2 Dec 2014 11:28:55 +0100 Subject: [PATCH 2/3] Do not forget to set the expire time. --- examples/relational/Storage/AuthCodeStorage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/relational/Storage/AuthCodeStorage.php b/examples/relational/Storage/AuthCodeStorage.php index c744c081..6a44a714 100644 --- a/examples/relational/Storage/AuthCodeStorage.php +++ b/examples/relational/Storage/AuthCodeStorage.php @@ -24,6 +24,7 @@ class AuthCodeStorage extends AbstractStorage implements AuthCodeInterface $token = new AuthCodeEntity($this->server); $token->setId($result[0]['auth_code']); $token->setRedirectUri($result[0]['client_redirect_uri']); + $token->setExpireTime($result[0]['expire_time']); return $token; } From 8cfa3dcdada40326c73bed1803cf72e22cb14d20 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 2 Dec 2014 10:45:18 +0000 Subject: [PATCH 3/3] Changelog update --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aedca34..011c1055 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 4.0.3 (released 2014-12-02) + +* Fix bad type hintings (Issue #267) +* Do not forget to set the expire time (Issue #268) + ## 4.0.2 (released 2014-11-21) * Improved interfaces (Issue #255)