composer/composer — Issue #133: [Solver] Error updating deps after adding AsseticBundle
Author: jmikola
Created: 2011-11-25 20:43:18+00:00
State: open

My project's `composer.json` file looked like this:

```json
{
"require": {
"doctrine/data-fixtures": "master-dev",
"doctrine/mongodb-odm": "master-dev",
"jms/security-extra-bundle": "master-dev",
"monolog/monolog": "master-dev",
"sensio/distribution-bundle": "master-dev",
"sensio/framework-extra-bundle": "master-dev",
"sensio/generator-bundle": "master-dev",
"symfony/mongodb-odm-bundle": "master-dev",
"symfony/symfony": "2.1.0-dev",
"twig/twig": "1.4.0-dev"
}
}
```

Running `./composer.phar install --dev` downloaded all of the deps (and VCS info) just fine. I then added the following dependency:

```
"symfony/assetic-bundle": "master-dev",
```

And re-ran: `./composer.phar update --dev`, which yielded the error:

```
[arsjerm.net] master $ ./composer.phar update --dev
> Updating dependencies.
PHP Notice: Undefined property: Composer\DependencyResolver\Solver::$learnedLiterals in phar:///home/jmikola/workspace/arsjerm.net/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Warning: Invalid argument supplied for foreach() in phar:///home/jmikola/workspace/arsjerm.net/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Warning: assert(): Assertion failed in phar:///home/jmikola/workspace/arsjerm.net/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Notice: Undefined offset: -1 in phar:///home/jmikola/workspace/arsjerm.net/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Fatal error: Call to a member function getPackageId() on a non-object in phar:///home/jmikola/workspace/arsjerm.net/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
```