`
bozch
  • 浏览: 456335 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
阅读更多

昨天在为了把laravel升级到最新的版本,突然之间就出现了如下错误:

ErrorException thrown with message "Declaration of Illuminate\View\Engines\CompilerEngine::handleViewException() should be compatible with Illuminate\View\Engines\PhpEngine::handleViewException($e)"

发现这个错误的时候很蒙,不知道哪里出了错误,猜测了几种情况:

       1、更新的时候,有残留文件导致。 删除所有的更新文件,重新更新 - 》 发现木有问题;

       2、使用composer加载类的时候,加载过多导致的。 - > 可能性不大,经过排查无问题,毕竟是成熟的技术。

      3、(解决方案)细致排查 ,与compileEngine和PhpEngine相关的文件,-> 奇迹出现了,原来是在bootstrap里面有对ClassLoader等类 进行了重新定义。  删除之后 OK 成功运行。

 

 

     

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics