From dd795a82f484d61604d7063f901a994a0a7cd270 Mon Sep 17 00:00:00 2001 From: Hannes Van De Vreken Date: Fri, 23 Jan 2015 11:21:12 +0100 Subject: [PATCH] Changed the order and added missing throws --- src/ResourceServer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ResourceServer.php b/src/ResourceServer.php index 434391a0..ab9ebec4 100644 --- a/src/ResourceServer.php +++ b/src/ResourceServer.php @@ -98,9 +98,10 @@ class ResourceServer extends AbstractServer * @param bool $headerOnly Limit Access Token to Authorization header * @param \League\OAuth2\Server\Entity\AccessTokenEntity|null $accessToken Access Token * - * @return bool - * * @throws \League\OAuth2\Server\Exception\AccessDeniedException + * @throws \League\OAuth2\Server\Exception\InvalidRequestException + * + * @return bool */ public function isValidRequest($headerOnly = true, $accessToken = null) {