Skip to content

Commit 6340ec9

Browse files
committed
Updated docs and spec
1 parent 7148f32 commit 6340ec9

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"illuminate/console": "4.2.*",
2323
"illuminate/http": "4.2.*",
2424
"nesbot/carbon": "1.*",
25-
"league/oauth2-server": "4.0.*"
25+
"league/oauth2-server": "~4.0.*"
2626
},
2727
"require-dev": {
2828
"phpspec/phpspec": "~2.0",

src/Authorizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function getScopes()
182182

183183
/**
184184
* Check if the current request has all the scopes passed
185-
* @param string|array $scope the scope(s) to check for existence
185+
* @param string $scope the scope to check for existence
186186
* @return bool
187187
*/
188188
public function hasScope($scope)

tests/unit/LucaDegasperi/OAuth2Server/AuthorizerSpec.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@ function it_checks_if_a_scope_is_included_into_the_current_ones(ResourceServer $
6262
$accessTokenEntity->hasScope('foo')->willReturn(true)->shouldBeCalled();
6363
$checker->getAccessToken()->willReturn($accessTokenEntity)->shouldBeCalled();
6464
$this->hasScope('foo')->shouldReturn(true);
65-
66-
$accessTokenEntity->hasScope(['foo', 'bar'])->willReturn(false)->shouldBecalled();
67-
$checker->getAccessToken()->willReturn($accessTokenEntity)->shouldBeCalled();
68-
$this->hasScope(['foo', 'bar'])->shouldReturn(false);
6965
}
7066

7167
function it_returns_the_resource_owner_id(ResourceServer $checker, AccessTokenEntity $accessTokenEntity, SessionEntity $sessionEntity)

0 commit comments

Comments
 (0)