composer/composer — Issue #289: Unresolved dependencies when recommend and suggest are present
Author: Maks3w
Created: 2012-02-12 15:50:40+00:00
State: open

Installing this packages with --install-suggests

```json
{
"require": {
"php": ">=5.3.2",
"ext-ldap": "*",
"symfony/config": "2.0.*",
"symfony/dependency-injection": "2.0.*",
"symfony/security": "2.0.*",
"symfony/security-bundle": "2.0.*"
},
"recommend": {
"symfony/class-loader": "2.0.*",
"symfony/validator": "2.0.*"
},
"suggest": {
"symfony/framework-bundle": "2.0.*"
}
}
```

return the following error

```bash
$ php composer.phar install --install-suggests --dry-run
Installing dependencies

Warning: assert(): Assertion failed in phar:///****/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2

Fatal error: Call to a member function getPackageId() on a non-object in phar:///****/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
```

But if section recommend or suggest is removed then works.

Seems to be a problem with symfony/framework-bundle that has dependencies over all above packages.