Skip to content

Commit cb52f08

Browse files
authored
Bugfix.
1 parent 8cb8383 commit cb52f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/OAuthAuthenticate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function handle($request, Closure $next, $account = 'default', $scope = n
5959
$enforceHttps = Arr::get($config, 'oauth.enforce_https', false);
6060

6161
if ($request->has('code')) {
62-
if (\is_callable($officialAccount->oauth, 'user')) {
62+
if (\is_callable([$officialAccount->oauth, 'user'])) {
6363
$user = $officialAccount->oauth->user();
6464
} else {
6565
$user = $officialAccount->oauth->userFromCode($request->query('code'));

0 commit comments

Comments
 (0)