当前位置:网站首页>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
边栏推荐
- CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算
- uniapp 开发微信公众号,下拉框默认选中列表第一个
- 411 stack and queue (20. valid parentheses, 1047. delete all adjacent duplicates in the string, 150. inverse Polish expression evaluation, 239. sliding window maximum, 347. the first k high-frequency
- PHP uses recursive and non recursive methods to create multi-level folders
- 4. classification management business development
- 小程序 rich-text中图片点击放大与自适应大小问题
- leetCode-223: 矩形面积
- 记录一下MySql update会锁定哪些范围的数据
- 大中型企业如何构建自己的监控体系
- 线程的六种状态
猜你喜欢

百度网盘下载一直请求中问题解决

How can I solve the problem that the swiper animation animation fails when switching between left and right rotations of the swiper?

canvas无限扫描js特效代码

正规方程、、、

线程池的执行流程

自定义kindeditor编辑器的工具栏,items即去除不必要的工具栏或者保留部分工具栏

Getting user information for applet learning (getuserprofile and getUserInfo)

Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.

leetCode-498: 对角线遍历

微信小程序学习之 实现列表渲染和条件渲染.
随机推荐
Desktop software development framework reward
5. dish management business development
线程的 sleep() 方法与 wait() 方法的区别
Internet of things? Come and see Arduino on the cloud
消息队列的作用
SQL sever基本数据类型详解
Recursive traversal of 414 binary tree
Leetcode interview question 01.05: primary editing
leetCode-223: 矩形面积
正规方程、、、
Using pandas to read SQL server data table
包装类型与基本类型的区别
Getting user information for applet learning (getuserprofile and getUserInfo)
leetCode-929: 独特的电子邮件地址
线程调度的常用方法
What are the characteristics of EDI local deployment and cloud hosting solutions?
记录一下MySql update会锁定哪些范围的数据
canvas无限扫描js特效代码
SQL sever试题求最晚入职日期
2.登陆退出功能开发