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

Call to a member function isAvailable() on null #4

Open
tesun opened this issue May 6, 2022 · 3 comments
Open

Call to a member function isAvailable() on null #4

tesun opened this issue May 6, 2022 · 3 comments

Comments

@tesun
Copy link

tesun commented May 6, 2022

Call to a member function isAvailable() on null

@Xavier-Lam
Copy link
Owner

是否有具体的调用示例 已经错误traceback

@puzzle9
Copy link
Contributor

puzzle9 commented Apr 11, 2023

是否有具体的调用示例 已经错误traceback

php8 会出现这个

$auth = new YS7Auth($appKey, $appSecret);
$client = new YS7Client($auth);

$client->device->add($deviceSerial, $validateCode);

@Xavier-Lam
Copy link
Owner

有traceback吗 简单看了一下 如果构造函数不传auth或者auth中途被设为空了 才可能出现这个错误 可以尝试断点调试一下

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

3 participants