这个在自己写的类中 需要function __construct(){
parent::__construct();
}继承父类构造函数

 

当发生这个错误的时候,需要在构造函数中集成父类构造

破罐子互摔