php "Deprecated: Methods with the same name as their class will not be"报错解决方法

v2016 2020-2-12 2310

php7.0之后将不再支持与类名相同的构造方法,构造方法统一使用 __construct()。

将报错位置的

function xxx

改为

function __construct()

即可

最新回复 (1)
  • 魔王 2020-2-12
    2
    你去tg看下,我們一起一道999啊
    • 屌丝论坛
      3