From e27b13ee7d07933152beb8a1c19f22ecbfe23a12 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 22 Mar 2016 14:44:21 +0000 Subject: [PATCH] Accept scopes as reference --- src/Grant/PasswordGrant.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Grant/PasswordGrant.php b/src/Grant/PasswordGrant.php index e2960072..cc1c1d69 100644 --- a/src/Grant/PasswordGrant.php +++ b/src/Grant/PasswordGrant.php @@ -70,7 +70,7 @@ class PasswordGrant extends AbstractGrant * @return \League\OAuth2\Server\Entities\Interfaces\UserEntityInterface * @throws \League\OAuth2\Server\Exception\OAuthServerException */ - protected function validateUser(ServerRequestInterface $request, array $scopes) + protected function validateUser(ServerRequestInterface $request, array &$scopes) { $username = $this->getRequestParameter('username', $request); if (is_null($username)) {