Call to undefined method QL\QueryList::get()

PHP技术交流群:180460365、320205320、320205320

本文博客地址

https://blog.csdn.net/chenyope

 

安装QueryList

composer require jaeger/querylist

之后调用报错

Call to undefined method QL\QueryList::get()

 

composer require jaeger/querylist 方式安装,会自动判断当前php版本,如果PHP版本小于PHP7.0,则会安装QueryList v3.

这个是由于项目中QueryList的版本是v3导致,调用了v4版本的方法。

应该使用v4版本

 

由于我服务器是php多版本共存,所以默认安装的时候,读取到的是php5,实际上我的项目是可以配置php7的。强制composer指定版本即可。

composer require --ignore-platform-reqs jaeger/querylist:~V4

 

 

完。

 

 

码农转型中,欢迎关注码农个人公众号,交流深夜的姿势。

Call to undefined method QL\QueryList::get()_第1张图片

 

 

本文博客地址

https://blog.csdn.net/chenyope

 

你可能感兴趣的:(PHP,开发工具)