Skip to content

Instantly share code, notes, and snippets.

@gquemener
Created April 10, 2014 13:45
Show Gist options
  • Save gquemener/10383889 to your computer and use it in GitHub Desktop.
Save gquemener/10383889 to your computer and use it in GitHub Desktop.
Composer require bug
➜ pim git:(master) ✗ composer.phar --version
Composer version a023c7929aba08861bea56e9cb371b2d31a1eb5b 2014-04-10 13:28:36
➜ pim git:(master) ✗ composer.phar require foo/foo --no-update -v
Please provide a version constraint for the foo/foo requirement: dev-master
[ErrorException]
Undefined variable: childrenClean
Exception trace:
() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Json/JsonManipulator.php:228
Composer\Util\ErrorHandler::handle() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Json/JsonManipulator.php:228
Composer\Json\JsonManipulator->removeSubNode() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Command/RequireCommand.php:154
Composer\Command\RequireCommand->updateFileCleanly() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Command/RequireCommand.php:95
Composer\Command\RequireCommand->execute() at phar:///home/gildas/.local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
Symfony\Component\Console\Command\Command->run() at phar:///home/gildas/.local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:892
Symfony\Component\Console\Application->doRunCommand() at phar:///home/gildas/.local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
Symfony\Component\Console\Application->doRun() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Console/Application.php:117
Composer\Console\Application->doRun() at phar:///home/gildas/.local/bin/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at phar:///home/gildas/.local/bin/composer.phar/src/Composer/Console/Application.php:83
Composer\Console\Application->run() at phar:///home/gildas/.local/bin/composer.phar/bin/composer:43
require() at /home/gildas/.local/bin/composer.phar:15
require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-update] [--update-no-dev] [--update-with-dependencies] [packages1] ... [packagesN]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment