Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提示 【withUnionId】未定义,看着不是很舒服 #283

Open
zuoWinger opened this issue Dec 17, 2024 · 0 comments
Open

提示 【withUnionId】未定义,看着不是很舒服 #283

zuoWinger opened this issue Dec 17, 2024 · 0 comments

Comments

@zuoWinger
Copy link

image 版本: "overtrue/socialite": "^4.11"

问题描述:在QQ互联 获取用户信息 包含 unionId时,需在create('qq')后带上 withUnionId()方法,vscode 装上PHP Intelephense扩展插件后,会提示 【withUnionId】未定义,看着不是很舒服

代码:

	$socialite = new SocialiteManager(config('socialite'));
   	$user = $socialite->create('qq')->withUnionId()->userFromCode($code);

PHP Intelephense 最新版:https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant