有些人可能知道,PHP 版本≥7.2 有一个关于计数的问题:count(): parameter must be an array or an object that implements Countable
这确实导致了很多问题。
我在Heroku上使用 PHP 框架Laravel 5.3,在 PHP 版本更改之前它运行良好。那么我为什么不直接更改 PHP 版本呢?好吧,根据文档,我应该只更改 my , run中的版本,一切都会好起来的,但是没有 - 我收到了这个错误:composer.json
composer update
Your requirements could not be resolved to an installable set of packages.
Problem 1
- This package requires php ^5.6.4 but your PHP version (7.2.1) does not satisfy that requirement.
任何人都知道可以帮助解决我的问题吗?