当前位置:网站首页>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
边栏推荐
- uniapp 开发微信公众号,下拉框默认选中列表第一个
- Development of anti fleeing marketing software for health products
- 416 binary tree (first, middle and last order traversal iteration method)
- TP5 using post to receive array data times variable type error: solution to array error
- Is there a reliable and low commission futures account opening channel in China? Is it safe to open an account online?
- Which of the top ten securities companies has the lowest Commission and is the safest and most reliable? Do you know anything
- 消息队列的作用
- Queue queue
- [db2] sql0805n solution and thinking
- How to standardize data center infrastructure management process
猜你喜欢

Three ways to use applicationcontextinitializer

Geogebra instance clock

SVG+js拖拽滑块圆形进度条

小程序学习之获取用户信息(getUserProfile and getUserInfo)

Impdp leading schema message ora-31625 exception handling

微信小程序學習之 實現列錶渲染和條件渲染.

leetCode-2221: 数组的三角和

How to customize sharing links in wechat for H5 web pages

canvas无限扫描js特效代码

How to standardize data center infrastructure management process
随机推荐
学习使用php实现无限极评论和无限极转二级评论解决方案
Geogebra instance clock
web网站开发,图片懒加载
Desktop software development framework reward
自定义kindeditor编辑器的工具栏,items即去除不必要的工具栏或者保留部分工具栏
学习使用php对字符串中的特殊符号进行过滤的方法
415 binary tree (144. preorder traversal of binary tree, 145. postorder traversal of binary tree, 94. inorder traversal of binary tree)
学习使用KindEditor富文本编辑器,点击上传图片遮罩太大或白屏解决方案
Leetcode-498: diagonal traversal
uniapp实现禁止video拖拽快进
Leetcode interview question 01.05: primary editing
6. package management business development
Yolov6: the fast and accurate target detection framework is open source
植物生长h5动画js特效
24. 图像拼接大作业
leetCode-498: 对角线遍历
Producer / consumer model
SQL Server AVG函数取整问题
Uniapp develops wechat official account, and the drop-down box selects the first one in the list by default
上升的气泡canvas破碎动画js特效