当前位置:网站首页>Resolved: methods with the same name as their class will not be constructors in
Resolved: methods with the same name as their class will not be constructors in
2022-06-24 10:18:00 【Wandering in memory of Yu Fei】
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP
Report errors

( ! ) Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Services_JSON_Error has a deprecated constructor in D:\wamp\www\kindeditor\JSON.php on line 795
Solution
By looking at PHP Document discovery on the official website ,php7.0 The constructor with the same class name will no longer be supported , The construction method is used uniformly __construct().
Look for code :D:\wamp\www\kindeditor\JSON.php on line The first 795 That's ok
The original document 
class Services_JSON_Error
{
function Services_JSON_Error($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
}
}
Change it to
class Services_JSON_Error
{
function __construct($message = 'unknown error', $code = null,
$mode = null, $options = null, $userinfo = null)
{
}
}

take function Services_JSON_Error Change it to function __construct
边栏推荐
- How to customize sharing links in wechat for H5 web pages
- What are the characteristics of EDI local deployment and cloud hosting solutions?
- 5.菜品管理业务开发
- Using pandas to read SQL server data table
- Graffiti smart brings a variety of heavy smart lighting solutions to the 2022 American International Lighting Exhibition
- 2022-06-23: given a nonnegative array, select any number to make the maximum cumulative sum a multiple of 7, and return the maximum cumulative sum. N is larger, to the 5th power of 10. From meituan. 3
- 414-二叉树的递归遍历
- Uniapp develops a wechat applet to display the map function, and click it to open Gaode or Tencent map.
- 线程的六种状态
- SQL sever基本数据类型详解
猜你喜欢
随机推荐
微信小程序學習之 實現列錶渲染和條件渲染.
Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.
oracle池式连接请求超时问题排查步骤
Wechat applet learning to achieve list rendering and conditional rendering
PHP encapsulates a file upload class (supports single file and multiple file uploads)
被困英西中学的师生安全和食物有保障
Cookie encryption 4 RPC method determines cookie encryption
整理接口性能优化技巧,干掉慢代码
物联网?快来看 Arduino 上云啦
numpy.logical_and()
小程序学习之获取用户信息(getUserProfile and getUserInfo)
为什么 JSX 语法这么香?
uniapp实现点击拨打电话功能
416-二叉树(前中后序遍历—迭代法)
Network of test and development - Common Service Protocols
How to standardize data center infrastructure management process
Three ways to use applicationcontextinitializer
uniapp 开发微信公众号,下拉框默认选中列表第一个
5.菜品管理业务开发
Groovy obtains Jenkins credentials through withcredentials








