--TEST-- See GitHub issue #4319 ( github.com/composer/composer/issues/4319 ). Present a clear error message when config.platform.php version results in a conflict rule. --CONDITION-- !defined('HHVM_VERSION') --COMPOSER-- { "repositories": [ { "type": "package", "package": [ { "name": "a/a", "version": "1.0.0", "require": { "php": "5.5" } } ] } ], "require": { "a/a": "~1.0" }, "config": { "platform": { "php": "5.3" } } } --RUN-- update --EXPECT-OUTPUT-- Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires a/a ~1.0 -> satisfiable by a/a[1.0.0]. - a/a 1.0.0 requires php 5.5 -> your php version (5.3; overridden via config.platform, actual: %s) does not satisfy that requirement. --EXPECT-- --EXPECT-EXIT-CODE-- 2