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

PHP 7.0.x 弃用的功能:静态调用非静态的方法 #16

Open
xiaoyouxi01 opened this issue May 24, 2018 · 0 comments
Open

PHP 7.0.x 弃用的功能:静态调用非静态的方法 #16

xiaoyouxi01 opened this issue May 24, 2018 · 0 comments

Comments

@xiaoyouxi01
Copy link
Contributor

xiaoyouxi01 commented May 24, 2018

根据官方文档:PHP 7.0.x 弃用的功能→静态调用非静态的方法
http://www.php.net/manual/zh/migration70.deprecated.php
01

在weworkapi_php-master\api\src\CorpAPI.class.php中,有多处静态调用Utils::Object2Array,会报错:

Deprecated: Non-static method Utils::Object2Array() should not be called statically in D:\Software\Wampserver\www\weworkapi_php-master\api\src\CorpAPI.class.php on line 438

Deprecated: Non-static method Utils::Object2Array() should not be called statically in D:\Software\Wampserver\www\weworkapi_php-master\utils\Utils.class.php on line 75

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