Skip to content

Commit d9a994d

Browse files
authored
Fix mock in 'actingAsClient‘ method (#1822)
1 parent db70cb1 commit d9a994d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Passport.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ public static function actingAsClient(Client $client, array $scopes = [], ?strin
378378
fn (ServerRequestInterface $request) => $request
379379
->withAttribute('oauth_client_id', $client->getKey())
380380
->withAttribute('oauth_scopes', $scopes)
381+
->withAttribute('oauth_user_id', null)
381382
);
382383

383384
app()->instance(ResourceServer::class, $mock);

0 commit comments

Comments
 (0)