I am trying to install doctrine to my project. I am getting the error about the wrong PHP version. What can be done to remove the real reason for this error? The way to overcome
Somewhere in your composer.json you have
composer.json
"config": { "preferred-install": "dist", "platform": { "php": "5.3.9" } }
That block overrides your current PHP version as described in composer doc.