We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb8383 commit cb52f08Copy full SHA for cb52f08
src/Middleware/OAuthAuthenticate.php
@@ -59,7 +59,7 @@ public function handle($request, Closure $next, $account = 'default', $scope = n
59
$enforceHttps = Arr::get($config, 'oauth.enforce_https', false);
60
61
if ($request->has('code')) {
62
- if (\is_callable($officialAccount->oauth, 'user')) {
+ if (\is_callable([$officialAccount->oauth, 'user'])) {
63
$user = $officialAccount->oauth->user();
64
} else {
65
$user = $officialAccount->oauth->userFromCode($request->query('code'));
0 commit comments