安装doctrine/doctrine-migrations-bundle
时出错
FatalErrorException in appDevDebugProjectContainer.php line 4719:
Parse Error: syntax error, unexpected ':', expecting ';' or '{'
"require": {
"php": ">=5.5.9",
"symfony/symfony": "3.1.6",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-cache-bundle": "^1.2",
"symfony/swiftmailer-bundle": "^2.3",
"symfony/monolog-bundle": "^2.8",
"symfony/polyfill-apcu": "^1.0",
"sensio/distribution-bundle": "^5.0",
"sensio/framework-extra-bundle": "^3.0.2",
"incenteev/composer-parameter-handler": "^2.0",
"doctrine/doctrine-migrations-bundle": "^1.0"
},
在作曲家和所有作品中删除了doctrine / doctrine-migrations-bundle
- Removing doctrine/doctrine-migrations-bundle (v1.2.0)
- Removing doctrine/migrations (1.4.1)
- Removing ocramius/proxy-manager (2.0.4)
- Removing zendframework/zend-code (3.1.0)
- Removing zendframework/zend-eventmanager (3.0.1)
- Removing ocramius/package-versions (1.1.1)
我的版本php(5.6.28-1) 没有迁移捆绑一切都很好 如何解决这个问题?
答案 0 :(得分:0)
不,我尝试了很多版本捆绑,但在将php版本更改为7.0时解决了这个问题
答案 1 :(得分:0)
我认为某处有一个特殊符号。
尝试删除最后一行(不要忘记删除上一行的逗号),然后调用命令composer require doctrine/doctrine-migrations-bundle
。
它将自动在composer.json中添加右行。