I went to update composer using
composer update
after update having the following error:
FatalErrorException in Inf
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.*