Skip to content

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

Description

@xiaoyouxi01

根据官方文档: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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions