当前位置:网站首页>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 develops a wechat applet to display the map function, and click it to open Gaode or Tencent map.
- 小程序 rich-text中图片点击放大与自适应大小问题
- p5.js实现的炫酷交互式动画js特效
- Uniapp develops wechat official account, and the drop-down box selects the first one in the list by default
- leetCode-2221: 数组的三角和
- Floating point notation (summarized from cs61c and CMU CSAPP)
- np.float32()
- 学习使用KindEditor富文本编辑器,点击上传图片遮罩太大或白屏解决方案
- Regular matching mailbox
- 读取csv(tsv)文件出错
猜你喜欢
保健品一物一码防窜货营销软件开发
3.员工的增删改查
4.分类管理业务开发
uniapp 开发微信公众号,下拉框默认选中列表第一个
CVPR 2022 Oral | 英伟达提出自适应token的高效视觉Transformer网络A-ViT,不重要的token可以提前停止计算
Impdp leading schema message ora-31625 exception handling
简单的价格表样式代码
411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)
SVG+js拖拽滑块圆形进度条
Machine learning perceptron and k-nearest neighbor
随机推荐
Canvas draw picture
微信小程序學習之 實現列錶渲染和條件渲染.
leetCode-1051: 高度检查器
读取csv(tsv)文件出错
Nvisual digital infrastructure operation management software platform
Mise en œuvre du rendu de liste et du rendu conditionnel pour l'apprentissage des applets Wechat.
1.项目环境搭建
leetCode-面试题 01.05: 一次编辑
Machine learning perceptron and k-nearest neighbor
机器学习——主成分分析(PCA)
微信小程序rich-text图片宽高自适应的方法介绍(rich-text富文本)
411-栈和队列(20. 有效的括号、1047. 删除字符串中的所有相邻重复项、150. 逆波兰表达式求值、239. 滑动窗口最大值、347. 前 K 个高频元素)
Impdp leading schema message ora-31625 exception handling
uniapp实现点击拨打电话功能
413 binary tree Foundation
一群骷髅在飞canvas动画js特效
Queue queue
Engine localization adaptation & Reconstruction notes
[db2] sql0805n solution and thinking
2.登陆退出功能开发