Call to a member function addEagerConstraints() on null

Call to a member function addEagerConstraints() on null

 public function xxx()
    {
        return yyy;
    }

加上  return   就行了

原文地址:https://www.cnblogs.com/zqblog1314/p/12774969.html