Skip to content

Commit b221626

Browse files
committed
fix: wrong variable used as first argument to array_diff()
1 parent 22cec1d commit b221626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VerifyAccessToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ protected function checkScopes($scopesForToken, $requiredScopes)
2020
$requiredScopes = [$requiredScopes];
2121
}
2222

23-
$misingScopes = array_diff($scopesForToken, $scopesForToken);
23+
$misingScopes = array_diff($requiredScopes, $scopesForToken);
2424

2525
if (count($misingScopes) > 0) {
2626
throw new MissingScopeException($misingScopes);

0 commit comments

Comments
 (0)