在我的composer.json
配置文件中,我有:
"require": {
"zendframework/zend-log" : "~2.3",
},
"require-dev": {
"phpunit/phpunit": "^5.4"
}
我想:
"require": {
"zendframework/zend-log" : "^2.9",
},
"require-dev": {
"phpunit/phpunit": "^6.2"
}
请注意版本号更改
如何?我希望它能够自动完成,而不必查找每个可用的最新版本并手动编辑。
有这个问题,但没有帮助:How to resolve package not found error when trying to make the composer get the latest package versions?
答案 0 :(得分:3)
运行
composer require zendframework/zend-log
和
composer require --dev phpunit/phpunit