search

Home  >  Q&A  >  body text

php7 error handling, problem solving.

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

reply all(1)I'll reply

  • 欧阳克

    欧阳克2017-07-03 11:43:02

    It has been clearly stated, base_exception_handler::report()The first parameter must be an Exception instance, and what you pass in is a TypeErrorinstance

    Attached is PHP's description of the Exception and TypeError types:
    http://php.net/manual/en/clas...
    http://php.net/manual/en/clas...

    reply
    0
  • Cancelreply