FatalErrorException in Inflector.php line 265: syntax error, unexpected ':', expecting ';' or '{'

前端 未结 6 639
粉色の甜心
粉色の甜心 2020-12-14 01:56

I went to update composer using

composer update

after update having the following error:

FatalErrorException in Inf

6条回答
  •  Happy的楠姐
    2020-12-14 03:01

    Delete composer.lock file

    `rm -f Composer.lock`
    

    Delete the vendor folder

    rm -R -f vendor
    

    composer install

    Then you can install a specific version of doctrine/inflector using composer for example:

    composer require doctrine/inflector:1.2.0 (this will work with php 7.0)

    Also, it helps me to resolve the build issue to upgrade carbon if you are using

    composer require nesbot/carbon=1.29.*
    

提交回复
热议问题