Uncaught TypeError: Argument 1 passed to base_exception_handler::report() must be an instance of Exception, instance of TypeError given, called in
Uncaught TypeError: Argument 1 passed to base_exception_handler::report() must be an instance of Exception, instance of TypeError given, called in
1 回答4k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
2 回答2.2k 阅读✓ 已解决
2 回答1.9k 阅读
1 回答1.4k 阅读✓ 已解决
2 回答2.2k 阅读
2 回答7.3k 阅读✓ 已解决
已经提示的很清楚了,
base_exception_handler::report()
第一个参数必须是Exception
实例,而你传入的是TypeError
实例附上PHP对于
Exception
和TypeError
类型的说明:http://php.net/manual/en/clas...
http://php.net/manual/en/clas...