php7的错误处理handling,问题求解。

查看:124
本文介绍了php7的错误处理handling,问题求解。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

Uncaught TypeError: Argument 1 passed to base_exception_handler::report() must be an instance of Exception, instance of TypeError given, called in 

解决方案

已经提示的很清楚了,base_exception_handler::report()第一个参数必须是Exception实例,而你传入的是TypeError实例

附上PHP对于ExceptionTypeError类型的说明:
http://php.net/manual/en/clas...
http://php.net/manual/en/clas...

这篇关于php7的错误处理handling,问题求解。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆